Skip to content

"selected" event doesn't distinguish between double clicking to clear a selection and single clicking outside the selection box #1911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chriddyp opened this issue Jul 24, 2017 · 4 comments
Milestone

Comments

@chriddyp
Copy link
Member

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.

clear-unselect

@chriddyp chriddyp added this to the Dash milestone Jul 24, 2017
@chriddyp
Copy link
Member Author

Brought up in this issue plotly/dash#97

@chriddyp chriddyp 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 Jul 24, 2017
chriddyp added a commit to plotly/dash-core-components that referenced this issue Jul 24, 2017
@etpinard
Copy link
Contributor

What about using plotly_deselect?

@chriddyp
Copy link
Member Author

that works for me! thanks 🥂

@etpinard
Copy link
Contributor

Ok. I'll close this.

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?

HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants