From 76c819c1e206c623d1a4c7fd0b9b4831d9db8f99 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 17 Mar 2021 11:42:01 +0300 Subject: [PATCH] Refactor #1880 - For OverlayPanel --- src/components/overlaypanel/OverlayPanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/overlaypanel/OverlayPanel.js b/src/components/overlaypanel/OverlayPanel.js index 91e05b73d4..e368c847de 100644 --- a/src/components/overlaypanel/OverlayPanel.js +++ b/src/components/overlaypanel/OverlayPanel.js @@ -1,6 +1,5 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; -import ReactDOM from 'react-dom'; import { classNames } from '../utils/ClassNames'; import DomHandler from '../utils/DomHandler'; import { CSSTransition } from 'react-transition-group'; @@ -8,6 +7,7 @@ import { Ripple } from '../ripple/Ripple'; import UniqueComponentId from '../utils/UniqueComponentId'; import ConnectedOverlayScrollHandler from '../utils/ConnectedOverlayScrollHandler'; import OverlayEventBus from '../overlayeventbus/OverlayEventBus'; +import { Portal } from '../portal/Portal'; export class OverlayPanel extends Component { @@ -294,6 +294,6 @@ export class OverlayPanel extends Component { render() { let element = this.renderElement(); - return ReactDOM.createPortal(element, this.props.appendTo || document.body); + return ; } }