diff --git a/src/util/vue.tsx b/src/util/vue.tsx index 6bd8866..6aee73f 100644 --- a/src/util/vue.tsx +++ b/src/util/vue.tsx @@ -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 }; }