Skip to content

Commit

Permalink
Refactor #1880 - For Dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 17, 2021
1 parent 7127ddf commit 1f7415f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/dropdown/DropdownPanel.js
Original file line number Diff line number Diff line change
@@ -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 DropdownPanelComponent extends Component {

Expand Down Expand Up @@ -45,7 +45,7 @@ class DropdownPanelComponent extends Component {
render() {
let element = this.renderElement();

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

}
Expand Down

0 comments on commit 1f7415f

Please sign in to comment.