Select Component: Selecting same choice twice clears selection #1622
Labels
status: help wanted
This issue is tentatively accepted pending a volunteer committed to its implementation
type: enhancement
An improvement or enhancement to an existing feature
Describe the bug
Choosing the same option twice in a
<Select>
deselects the option on next.shadcn-svelte.com.This behavior is contrary to how the original shadcn and non-next shadcn-svelte work.
It looks like the issue can be fixed by explicitly setting
allowDeselect={false}
on the<Select.Root>
object, but this should be the default to be consistent.Reproduction
You can see the problem on the next.shadcn-svelte.com site.
https://next.shadcn-svelte.com/docs/components/select
Just select Banana twice in the first example and compare the behavior with the original Shadcn or the non-next shadcn-svelte.
https://ui.shadcn.com/docs/components/select
https://shadcn-svelte.com/docs/components/select
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: