lxsmnsyc / terracotta

Headless UI for SolidJS
MIT License
662 stars 18 forks source link

listbox with multiple prop unable to unselect option #28

Open halindraprakoso opened 1 year ago

halindraprakoso commented 1 year ago

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 commented 1 year ago

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.