diff --git a/src/index.tsx b/src/index.tsx index bb0f5e8..aad1606 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -48,7 +48,6 @@ class PlotlyChart extends React.Component { if (this.container) { // plotly.react will not destroy the old plot: https://plot.ly/javascript/plotlyjs-function-reference/#plotlyreact this.container = await plotly.react(this.container, data, Object.assign({}, layout), config); - this.attachListeners(); } };