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
{{ message }}
Repository navigation
"selected" event doesn't distinguish between double clicking to clear a selection and single clicking outside the selection box #1911
In Dash, users need to know when the viewer has cleared the selection box by double clicking outside of it. Right now, single-clicking outside of the selection box doesn't clear the selection box but it emits a selected event with no data. Double-clicking outside of the selection box clears the selection box but it emits the same selected event with no data. There is no way to distinguish between these two actions right now.
changed the title [-]"selected" event doesn't distinguish between cleared selection and just clicking outside the selection box[/-][+]"selected" event doesn't distinguish between double clicking to clear a selection and single clicking outside the selection box[/+]on Jul 24, 2017
Perhaps we should revisit how plotly_selected is triggered when no points are selected in v2? (see #168 for more). Maybe it shouldn't be triggered at all?
Activity
chriddyp commentedon Jul 24, 2017
Brought up in this issue plotly/dash#97
[-]"selected" event doesn't distinguish between cleared selection and just clicking outside the selection box[/-][+]"selected" event doesn't distinguish between double clicking to clear a selection and single clicking outside the selection box[/+]Clear the selectedData if the selection box was cleared\nThis partially
etpinard commentedon Jul 24, 2017
What about using
plotly_deselect?chriddyp commentedon Jul 24, 2017
that works for me! thanks 🥂
etpinard commentedon Jul 25, 2017
Ok. I'll close this.
Perhaps we should revisit how
plotly_selectedis triggered when no points are selected inv2? (see #168 for more). Maybe it shouldn't be triggered at all?Clear the selectedData if the selection box was cleared\nThis partially