Skip to content

Commit

Permalink
Refactor #1878 - For Sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 16, 2021
1 parent 7a35a5a commit 6adc956
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/sidebar/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export class Sidebar extends Component {
this.onEnter = this.onEnter.bind(this);
this.onEntered = this.onEntered.bind(this);
this.onExit = this.onExit.bind(this);
this.onExited = this.onExited.bind(this);

this.sidebarRef = React.createRef();
}
Expand Down Expand Up @@ -92,6 +93,10 @@ export class Sidebar extends Component {
}
}

onExited() {
DomHandler.revertZIndex();
}

enableModality() {
if (!this.mask) {
this.mask = document.createElement('div');
Expand Down Expand Up @@ -222,7 +227,7 @@ export class Sidebar extends Component {

return (
<CSSTransition nodeRef={this.sidebarRef} classNames="p-sidebar" in={this.props.visible} timeout={transitionTimeout}
unmountOnExit onEnter={this.onEnter} onEntered={this.onEntered} onExit={this.onExit}>
unmountOnExit onEnter={this.onEnter} onEntered={this.onEntered} onExit={this.onExit} onExited={this.onExited}>
<div ref={this.sidebarRef} id={this.props.id} className={className} style={this.props.style} role="complementary">
<div className="p-sidebar-icons">
{icons}
Expand Down

0 comments on commit 6adc956

Please sign in to comment.