Skip to content

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

@purvil12c

Description

@purvil12c

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions