Skip to content

Commit 6b4b4be

Browse files
eXeC64benjeffery
authored andcommitted
Fix layout bugs caused by plotly cruft (#4)
1 parent 40501ce commit 6b4b4be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PlotlyComponent.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ var PlotlyComponent = React.createClass({
4343
},
4444

4545
componentWillUnmount: function() {
46+
//Remove some cruft left behind by plotly
47+
var cruft = document.getElementById("js-plotly-tester");
48+
cruft.parentNode.removeChild(cruft);
49+
4650
this.container.removeAllListeners('plotly_click');
4751
this.container.removeAllListeners('plotly_beforehover');
4852
this.container.removeAllListeners('plotly_hover');

0 commit comments

Comments
 (0)