Skip to content

Commit

Permalink
Refactor #1951 - For CascadeSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Apr 12, 2021
1 parent 394ee87 commit cd5a272
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/cascadeselect/CascadeSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,23 +257,21 @@ export class CascadeSelect extends Component {
this.bindOutsideClickListener();
this.bindScrollListener();
this.bindResizeListener();
if (this.props.onShow) {
this.props.onShow();
}

this.props.onShow && this.props.onShow();
}

onOverlayExit() {
this.unbindOutsideClickListener();
this.unbindScrollListener();
this.unbindResizeListener();
this.dirty = false;
if (this.props.onHide) {
this.props.onHide();
}
}

onOverlayExited() {
ZIndexUtils.clear(this.overlayRef.current);

this.props.onHide && this.props.onHide();
}

alignOverlay() {
Expand Down

0 comments on commit cd5a272

Please sign in to comment.