Closed ntharim closed 8 years ago
bind creates a new function so the keydown handler is not actually removed on componentWillUnmount. And since handleDocumentKeydown is an arrow function bind is not actually necessary.
bind
keydown
componentWillUnmount
handleDocumentKeydown
Oh wow, thank you
Published as v3.0.2
v3.0.2
bind
creates a new function so thekeydown
handler is not actually removed oncomponentWillUnmount
. And sincehandleDocumentKeydown
is an arrow functionbind
is not actually necessary.