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