Skip to content
Permalink
Browse files

fix(HotKeys): Fix an event after fixing HotKey unmount.

  • Loading branch information...
jaywcjlove committed Mar 19, 2018
1 parent 8903382 commit 384064bf7987e68210f4755b4b3fcf7d6fcf2c27
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotkeys/Hotkeys.js
@@ -22,7 +22,7 @@ export default class ReactHotkeys extends Component {
}
componentWillUnmount() {
Hotkeys.unbind(this.props.keyName);
this.isKeyDown = false;
this.isKeyDown = true;
this.handle = {};
document.removeEventListener('keyup', this.handleKeyUpEvent);
}

0 comments on commit 384064b

Please sign in to comment.
You can’t perform that action at this time.