Skip to content

Commit

Permalink
Refactor #1875 - For Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 16, 2021
1 parent 1f76785 commit 3bf7734
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,6 @@ export class Menu extends Component {
render() {
const element = this.renderElement();

if (this.props.appendTo)
return ReactDOM.createPortal(element, this.props.appendTo);
else
return element;
return this.props.popup ? ReactDOM.createPortal(element, this.props.appendTo || document.body) : element;
}
}

0 comments on commit 3bf7734

Please sign in to comment.