Skip to content

Purged gd still passes Lib.isPlotDiv #908

Closed
@rreusser

Description

@rreusser

If gd was ever a plot, then Lib.isPlotDiv(Plotly.purge(gd)) === true still passes. The solution would be for Plotly.purge() to remove the js-plotly-plot class added here.

The conclusion at the moment is not to fix this with a breaking change, but it seems to be a bug nonetheless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions