disconnect intersection observer
This commit is contained in:
parent
1dfb2f0ed4
commit
d4e0669724
|
@ -126,7 +126,7 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
if (readObserver) readObserver.unobserve(elRef.value);
|
if (readObserver) readObserver.disconnect();
|
||||||
if (connection) connection.dispose();
|
if (connection) connection.dispose();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue