Skip to content

Commit

Permalink
Fix not applying keydown listener, closes #1090
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed Jun 8, 2019
1 parent 14fa8d5 commit 7165e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/_shared/hooks/useKeyDown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ export function useKeyDown(active: boolean, keyHandlers: KeyHandlers) {
window.removeEventListener('keydown', handleKeyDown);
};
}
}, [active]);
}, [active, keyHandlers]);
}

0 comments on commit 7165e6f

Please sign in to comment.