You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add dragmode: 'select' to the basic choropleth example, plotly_click events are no longer emitted. plotly_selected events are emitted for clicks, but with an undefined data. So I cannot handle clicks in this mode.
The same events work for cartesian plots. I think this is because dragElement there is initialized with a clickFn that forwards simple clicks. I thought I'd add Fx.click() to geo.js's clickFn too. But I cannot create a repro in Jasmine.
I tried making a copy of the choropleth click events test and adding Plotly.relayout(gd, { dragmode: 'select' }, [0]).then(...). But it still passes. I cannot figure out why.
Thanks for any advice!
The text was updated successfully, but these errors were encountered:
Any inconsistencies across subplot types should be addressed, but come to think of it, I'm not sure the cartesian behavior is correct. More clearly, should plotly_click be emitted under dragmode: 'select' || 'pan'?
Cleaning this up will be especially important when implementing selection by click (in #1848 (comment)).
If I add
dragmode: 'select'
to the basic choropleth example,plotly_click
events are no longer emitted.plotly_selected
events are emitted for clicks, but with anundefined
data. So I cannot handle clicks in this mode.Example: https://codepen.io/anon/pen/QmoxOP
The same events work for cartesian plots. I think this is because
dragElement
there is initialized with aclickFn
that forwards simple clicks. I thought I'd addFx.click()
togeo.js
'sclickFn
too. But I cannot create a repro in Jasmine.I tried making a copy of the
choropleth click events
test and addingPlotly.relayout(gd, { dragmode: 'select' }, [0]).then(...)
. But it still passes. I cannot figure out why.Thanks for any advice!
The text was updated successfully, but these errors were encountered: