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

listbox with multiple prop unable to unselect option #28

Open
halindraprakoso opened this issue Jan 10, 2023 · 1 comment
Open

listbox with multiple prop unable to unselect option #28

halindraprakoso opened this issue Jan 10, 2023 · 1 comment

Comments

@halindraprakoso
Copy link

hello,
I'm using listbox as a multiselect via the multiple prop. However, clicking a selected item does not unselect the item. I tried the react headless UI and it unselects automatically.

Thanks for the library!

@Jcanotorr06
Copy link

Just in case anyone else runs into this issue, you need to pass both multiple and toggleable props to the Listboxcomponent in order to enable the ability to deselect options.

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