disconnect intersection observer

This commit is contained in:
tamaina 2021-11-22 16:14:22 +09:00
parent 1dfb2f0ed4
commit d4e0669724
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ export default defineComponent({
});
onUnmounted(() => {
if (readObserver) readObserver.unobserve(elRef.value);
if (readObserver) readObserver.disconnect();
if (connection) connection.dispose();
});
}