From 11d842059d208b8bf6fe49c367921b3ad1a97c3b Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 17 Mar 2021 11:42:08 +0300 Subject: [PATCH] Refactor #1880 - For Password --- src/components/password/Password.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/password/Password.js b/src/components/password/Password.js index b0e817881b..7770505615 100644 --- a/src/components/password/Password.js +++ b/src/components/password/Password.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 { tip } from '../tooltip/Tooltip'; @@ -11,6 +10,7 @@ import { classNames } from '../utils/ClassNames'; import ConnectedOverlayScrollHandler from '../utils/ConnectedOverlayScrollHandler'; import { localeOption } from '../api/Locale'; import OverlayEventBus from '../overlayeventbus/OverlayEventBus'; +import { Portal } from '../portal/Portal'; export class Password extends Component { @@ -438,7 +438,7 @@ export class Password extends Component { ); - return ReactDOM.createPortal(panel, this.props.appendTo || document.body); + return ; } render() {