shadcn-svelte
shadcn-svelte copied to clipboard
Combobox Search Does not work the same as original shadcn
Describe the bug
https://next.shadcn-svelte.com/docs/components/combobox#combobox https://ui.shadcn.com/docs/components/combobox#combobox
Comparing the original and svelte-shadcn combobox components.
Slowly type sjn in the combobox search for each component. Then slowly hit backspace to delete the individual letters and observe results.
Original shadcn will show Next.js and Nuxt.js after typing sjn and deleting n (back to sj)
shadcn-svelte will show no results.
It does not seem possible to add back results in the svelte version without clearing the entire combobox.
Reproduction
https://next.shadcn-svelte.com/docs/components/combobox#combobox
Logs
System Info
Online examples
Severity
annoyance
Good catch..!
I ran into the same issue with the Command component, would be great if this gets fixed.
Just noting this also happens with the Search documentation box in the header of https://next.shadcn-svelte.com
Example: Type in sidebar and then delete all letters except the initial s. Only sidebar is displayed despite several options being displayed when you initially type just s.
Update to bits-ui@latest and check the latest updates to the Command.Group components here for the fix:
https://github.com/huntabyte/shadcn-svelte/pull/1863