Skip to content

Commit

Permalink
Refactor #1875 - For SlideMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 16, 2021
1 parent 871733f commit 7e62726
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/slidemenu/SlideMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,6 @@ export class SlideMenu 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 7e62726

Please sign in to comment.