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

Resize handler for plotly called even when destroying the Plotly Vue component #37

Open
purvil12c opened this issue Aug 30, 2021 · 0 comments

Comments

@purvil12c
Copy link

purvil12c commented Aug 30, 2021

Error faced: Resize must be passed a displayed plot div element.

Investigation:
If plotly vue component is dynamically rendered (hidden / destroyed), the resize handler setup here - https://github.com/David-Desmaisons/vue-plotly/blob/master/src/components/Plotly.vue#L83 gets called even though the next action the component is its destruction.

Probably, there needs to be some validation to that resize handler and only pass-through to plotly's resize handler if the component is visible on the UI

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

No branches or pull requests

1 participant