Skip to content

Commit

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

Expand Down Expand Up @@ -294,6 +294,6 @@ export class OverlayPanel extends Component {
render() {
let element = this.renderElement();

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

0 comments on commit 76c819c

Please sign in to comment.