Skip to content

Commit

Permalink
fix(useMagicKeys): fix setting properties of undefined value (vueuse#…
Browse files Browse the repository at this point in the history
…1856)

Co-authored-by: Zoe.L <yang.li06@mihoyo.com>
  • Loading branch information
2 people authored and sibbng committed Jul 13, 2022
1 parent bfb8d08 commit 94eaa33
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/core/useMagicKeys/index.ts
Expand Up @@ -97,10 +97,7 @@ export function useMagicKeys(options: UseMagicKeysOptions<boolean> = {}): any {

function reset() {
for (const key of usedKeys) {
if (useReactive)
refs[key] = false
else
refs[key].value = false
setRefs(key, false)
}
}

Expand Down

0 comments on commit 94eaa33

Please sign in to comment.