From 4503678952c0405678d069fd22acdf9510d85964 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 17 Mar 2021 11:41:43 +0300 Subject: [PATCH] Refactor #1880 - For Menu --- src/components/menu/Menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/menu/Menu.js b/src/components/menu/Menu.js index 8fb12b4cd5..8fc4f4795e 100644 --- a/src/components/menu/Menu.js +++ b/src/components/menu/Menu.js @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import DomHandler from '../utils/DomHandler'; import ObjectUtils from '../utils/ObjectUtils'; @@ -8,6 +7,7 @@ import { CSSTransition } from 'react-transition-group'; import UniqueComponentId from '../utils/UniqueComponentId'; import ConnectedOverlayScrollHandler from '../utils/ConnectedOverlayScrollHandler'; import OverlayEventBus from '../overlayeventbus/OverlayEventBus'; +import { Portal } from '../portal/Portal'; export class Menu extends Component { @@ -346,6 +346,6 @@ export class Menu extends Component { render() { const element = this.renderElement(); - return this.props.popup ? ReactDOM.createPortal(element, this.props.appendTo || document.body) : element; + return this.props.popup ? : element; } }