From ddc088b9421e18dd49582a0b43c72cfc4e917b53 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 17 Mar 2021 11:41:53 +0300 Subject: [PATCH] Refactor #1880 - For MultiSelect --- src/components/multiselect/MultiSelectPanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/multiselect/MultiSelectPanel.js b/src/components/multiselect/MultiSelectPanel.js index 4edeffc0bd..697396b42f 100644 --- a/src/components/multiselect/MultiSelectPanel.js +++ b/src/components/multiselect/MultiSelectPanel.js @@ -1,8 +1,8 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import ReactDOM from 'react-dom'; import { classNames } from '../utils/ClassNames'; import { CSSTransition } from 'react-transition-group'; +import { Portal } from '../portal/Portal'; class MultiSelectPanelComponent extends Component { @@ -49,7 +49,7 @@ class MultiSelectPanelComponent extends Component { render() { let element = this.renderElement(); - return ReactDOM.createPortal(element, this.props.appendTo || document.body); + return ; } }