Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Clear the selectedData if the selection box was cleared #40

Merged
merged 4 commits into from
Jul 24, 2017
Merged

Conversation

chriddyp
Copy link
Member

This partially fixes plotly/dash#97 but depends on plotly/plotly.js#1911 getting fixed

@chriddyp
Copy link
Member Author

clear-unselect-null

Note how this fix doesn't distinguish between single clicks outside of the box and double clicks that clear the box. Once plotly/plotly.js#1911 is fixed (or some alternative solution is proposed) we can update this solution to only pass null if the selection box was indeed cleared.

@chriddyp
Copy link
Member Author

New solution using the plotly_deselect event:

clear-unselect

@chriddyp chriddyp merged commit 4f2b3e0 into master Jul 24, 2017
@chriddyp chriddyp deleted the deselect branch July 24, 2017 20:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

selectedData does not update on deselection
1 participant