Skip to content
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

Deselect on onSelectionFinish(similar to #40) #91

Open
vickyvishal opened this issue Aug 7, 2020 · 2 comments
Open

Deselect on onSelectionFinish(similar to #40) #91

vickyvishal opened this issue Aug 7, 2020 · 2 comments

Comments

@vickyvishal
Copy link

My use case is, I need to deselect all the selection at some point. The only way to do this right now is a <DeselectAll/> button. Is there a function for the same that I can do outside the <SelectableGroup /> (without using <DeselectAll/> as a ref )?

@vickyvishal vickyvishal changed the title Deselect on onSelectionFinish Deselect on onSelectionFinish(similar to #40) Aug 7, 2020
@heri16
Copy link

heri16 commented Jan 29, 2021

SelectableGroupRef.clearSelection()

@wdjennings
Copy link

This worked for me, with the added caveat that I needed current in my ref: (selectableGroupRef.current.clearSelection()). I defined my selectableGroupRef = useRef()

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

3 participants