diff --git a/routes/_components/pseudoVirtualList/PseudoVirtualList.html b/routes/_components/pseudoVirtualList/PseudoVirtualList.html index 0b4fad4c..8cb53ee6 100644 --- a/routes/_components/pseudoVirtualList/PseudoVirtualList.html +++ b/routes/_components/pseudoVirtualList/PseudoVirtualList.html @@ -61,6 +61,7 @@ if (intersectionObserver) { intersectionObserver.disconnect() } + this.store.setCurrentRealm(null) }, helpers: { isIntersecting(key, $intersectionStates) { diff --git a/routes/_components/virtualList/VirtualListContainer.html b/routes/_components/virtualList/VirtualListContainer.html index cd4450a0..732dc283 100644 --- a/routes/_components/virtualList/VirtualListContainer.html +++ b/routes/_components/virtualList/VirtualListContainer.html @@ -10,10 +10,10 @@ export default { oncreate() { mark('onCreate VirtualListContainer') + this.store.setCurrentRealm(this.get('realm')) let node = document.querySelector(this.get('containerQuery')) this.setupScroll(node) this.setupFullscreen() - this.store.setCurrentRealm(this.get('realm')) let scrollTop = this.store.get('scrollTop') if (scrollTop > 0) { this.observe('allVisibleItemsHaveHeight', allVisibleItemsHaveHeight => { @@ -39,6 +39,7 @@ ondestroy() { this.teardownScroll() this.teardownFullscreen() + this.store.setCurrentRealm(null) }, store: () => virtualListStore, methods: {