vue-virtual-scroller icon indicating copy to clipboard operation
vue-virtual-scroller copied to clipboard

fix issue with beforeDestroy hook

Open dsvs12 opened this issue 3 years ago • 0 comments
trafficstars

This fixes the issue when the dynamic scroller disappears out of view and the this.$el.parentNode returns nothing causing the observer to have issues, stack trace for current issue follows

[Vue warn]: Error in beforeDestroy hook: "TypeError: Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element'."

found in

---> <DynamicScrollerItem>
       <RecycleScroller>
         <DynamicScroller>
           <SeatSelect> at src/components/SeatSelectComponent.vue
             <Event> at src/views/Event.vue
               <App> at src/App.vue
                 <Root>
                 ```

dsvs12 avatar Sep 09 '22 15:09 dsvs12