rob-balfre / svelte-select

Svelte Select. A select component for Svelte
https://svelte-select-examples.vercel.app
Other
1.27k stars 180 forks source link

Click on active item doesn't hide items list. #379

Closed ZerdoX-x closed 2 years ago

ZerdoX-x commented 2 years ago

If you click on item that has current select's value (active item) dropdown won't close. Demo of native select:

https://user-images.githubusercontent.com/49815452/157864648-19e9551a-ff86-41e4-9e48-41014f9c8099.mov

rob-balfre commented 2 years ago

Does for me in both v4 and v5 beta.

ZerdoX-x commented 2 years ago

Reopen issue and please do not close them if it's working for you only.

So this issue can be reproducable if you wrap select component with label. I think it's worth to be mentioned in docs or fixed.

https://svelte.dev/repl/5a4fc690d7824f7eaa93601a6e3bbe59?version=3.46.4