The thing is that when I click the chart, this event gets fired twice. Could there be a workaround for this issue? am I the only one facing this problem?
Already tried it with latest version.
I found that the problem that is causing this issue to reproduce is that if you add two plotly_click with same function, it generates two listeners for the chart. So maybe somewhere in my code, I’m attaching the listener twice. Guess it’s more of a logic bug on my side rather than a plotly bug.
Do you know how can I remove ‘plotly_click’ (listener) before adding a new one for plotly?
// with
function listener () {}
gd.on('plotly_click', listener)
// either
gd.removeListener('plotly_click', listener)
// or
gd.removeAllListeners('plotly_click')