We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8258c6a commit db27e1fCopy full SHA for db27e1f
1 file changed
src/index.js
@@ -31,7 +31,7 @@ const useHotKeys = (hotkey, handler, userConfig, externalDocument) => {
31
const mousetrapInstance = bindHotKey({
32
mode: memoizedConfig.mode,
33
hotkey: convertedHotkey,
34
- handler: handlerRef.current,
+ handler: (...args) => handlerRef.current(...args),
35
ref,
36
externalDocument,
37
});
0 commit comments