Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: issue with beforeDestroy hook #748

Merged
merged 1 commit into from
Oct 10, 2022
Merged

fix: issue with beforeDestroy hook #748

merged 1 commit into from
Oct 10, 2022

Conversation

dsvs12
Copy link
Contributor

@dsvs12 dsvs12 commented Sep 9, 2022

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>
                 ```

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>```
@Akryum Akryum changed the base branch from master to v1 October 10, 2022 17:40
@Akryum Akryum changed the title fix issue with beforeDestroy hook fix: issue with beforeDestroy hook Oct 10, 2022
@Akryum Akryum merged commit 59f3f1b into Akryum:v1 Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants