mskocik / svelecte

Flexible autocomplete/select component written in Svelte,
https://svelecte.vercel.app
MIT License
472 stars 44 forks source link

Option to not unselect current selection on click #256

Closed mhkeller closed 1 month ago

mhkeller commented 1 month ago

If an item is selected in my list and I click on it, it gets unselected. Is there a prop to disable this behavior so that it behaves more like a native <select> element and the list always has a selection? I thought required would do that but I get the same behavior.

mskocik commented 1 month ago

It seems this behavior has disappeared in transition from v3. It makes sense to be coupled with required property.