Skip to content

Commit

Permalink
fix(useMagicKeys): also clear 'current' on @Focus|@blur (#2515)
Browse files Browse the repository at this point in the history
  • Loading branch information
hartmut-co-uk committed Dec 16, 2022
1 parent 324ded6 commit 21d24da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/useMagicKeys/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export function useMagicKeys(options: UseMagicKeysOptions<boolean> = {}): any {
}

function reset() {
current.clear()
for (const key of usedKeys)
setRefs(key, false)
}
Expand Down

0 comments on commit 21d24da

Please sign in to comment.