We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a2b73c commit 9ce84d6Copy full SHA for 9ce84d6
src/PlotlyComponent.js
@@ -45,7 +45,9 @@ var PlotlyComponent = React.createClass({
45
componentWillUnmount: function() {
46
//Remove some cruft left behind by plotly
47
var cruft = document.getElementById("js-plotly-tester");
48
- cruft.parentNode.removeChild(cruft);
+ if (cruft !== null) {
49
+ cruft.parentNode.removeChild(cruft);
50
+ }
51
52
this.container.removeAllListeners('plotly_click');
53
this.container.removeAllListeners('plotly_beforehover');
0 commit comments