Skip to content

Commit 31c3a6f

Browse files
committed
fix: tree-select cannot open issue, #5220
1 parent ad06a9e commit 31c3a6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/vc-select/hooks/useLock.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { onBeforeUpdate } from 'vue';
1+
import { onBeforeUnmount } from 'vue';
22

33
/**
44
* Locker return cached mark.
@@ -10,7 +10,7 @@ export default function useLock(duration = 250): [() => boolean | null, (lock: b
1010
let lock: boolean | null = null;
1111
let timeout: any;
1212

13-
onBeforeUpdate(() => {
13+
onBeforeUnmount(() => {
1414
clearTimeout(timeout);
1515
});
1616

0 commit comments

Comments
 (0)