shadcn-svelte icon indicating copy to clipboard operation
shadcn-svelte copied to clipboard

Combobox Search Does not work the same as original shadcn

Open bigmac44 opened this issue 8 months ago • 3 comments

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

bigmac44 avatar Mar 24 '25 05:03 bigmac44

Good catch..!

harryqt avatar Apr 18 '25 05:04 harryqt

I ran into the same issue with the Command component, would be great if this gets fixed.

Libor129 avatar Apr 18 '25 20:04 Libor129

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.

bigmac44 avatar Apr 24 '25 23:04 bigmac44

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

huntabyte avatar May 09 '25 14:05 huntabyte