diff --git a/src/composition/use-visibility-change.ts b/src/composition/use-visibility-change.ts index 0c5cd57dd..afce59ee9 100644 --- a/src/composition/use-visibility-change.ts +++ b/src/composition/use-visibility-change.ts @@ -25,7 +25,7 @@ export function useVisibilityChange( }; const unobserve = () => { - observer.observe(target.value); + observer.unobserve(target.value); }; onMounted(observe);