From d1df1272493fbaacc489a09d519b37a8171a87dc Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Fri, 28 Aug 2020 17:31:48 +0800 Subject: [PATCH] fix: useVisibilityChange unobserve --- src/composition/use-visibility-change.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);