Skip to content

Resize handler not removed when fit property is true #24

@ryanthomasnz

Description

@ryanthomasnz

When a Plotly-React plot is removed from page (props.fit is true) the following error occurs when resizing the window:

Uncaught TypeError: Cannot read property 'parentElement' of null
    at PlotlyComponent.getParentSize (factory.js:251)
    at PlotlyComponent.getSize (factory.js:264)
    at resizeHandler (factory.js:195)
getParentSize @ factory.js:251
getSize @ factory.js:264
resizeHandler @ factory.js:195

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions