lxsmnsyc/terracotta

listbox with multiple prop unable to unselect option

halindraprakoso opened this issue · 1 comments

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!

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.