Open purvil12c opened 3 years ago
Error faced: Resize must be passed a displayed plot div element.
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
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