Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Arrow navigation doesn't work if nothing matches the search until you remove all search text #996

Closed
ieedan opened this issue Dec 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ieedan
Copy link

ieedan commented Dec 11, 2024

Describe the bug

When using the command component in svelte 5 if your search input no longer matches any items you have to delete the entire search text for the arrow keys to work again.

The intended behavior here would be for it to just select the first option again once there are options again instead of waiting for the entire search input to be blank.

Any pauses you see in this video are me trying to use the up and down arrows but once nothing visible is selected it's pretty helpless.

Untitled.video.-.Made.with.Clipchamp.mp4

P.S. If you need a more minimal reproduction than this then lmk.

Reproduction

https://next.shadcn-svelte.com/docs/components/command

Logs

N/A

System Info

N/A

Severity

annoyance

@huntabyte
Copy link
Owner

This will suffice! I can, in fact, reproduce! Looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants