setupHoldToClick calls stop on unmount
This commit is contained in:
parent
3682582fc3
commit
563bf76bee
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,7 @@ import {
|
|||
DefineComponent,
|
||||
defineComponent,
|
||||
isRef,
|
||||
onUnmounted,
|
||||
PropType,
|
||||
ref,
|
||||
Ref,
|
||||
|
@ -113,6 +114,8 @@ export function setupHoldToClick(
|
|||
}
|
||||
}
|
||||
|
||||
onUnmounted(stop);
|
||||
|
||||
return { start, stop, handleHolding };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue