Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Commit

Permalink
unregister handlers on hide
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbansal committed Dec 16, 2017
1 parent 4a736ae commit 9d1295f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SubMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ export default class SubMenu extends AbstractMenu {
this.props.forceClose();
}
this.setState({ visible: false, selectedItem: null });
}
this.unregisterHandlers();
};

handleClick = (event) => {
event.preventDefault();
Expand Down

0 comments on commit 9d1295f

Please sign in to comment.