Skip to content

Commit

Permalink
Refactor #1880 - For Password
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 17, 2021
1 parent 76c819c commit 11d8420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/password/Password.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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 {

Expand Down Expand Up @@ -438,7 +438,7 @@ export class Password extends Component {
</CSSTransition>
);

return ReactDOM.createPortal(panel, this.props.appendTo || document.body);
return <Portal element={panel} appendTo={this.props.appendTo} />;
}

render() {
Expand Down

0 comments on commit 11d8420

Please sign in to comment.