I’m looking for a working method to unbind events (particularly ‘plotly_deselect’) using React Plotly.
I’ve tried the following methods :
useEffect(() => {
document.removeEventListener('plotly_deselect', (_) => null)
}, [])
and
<Plot ... onDeselect={() => null}/>
But the event is still trigered.