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

next: Select - Unable to select falsey value with keyboard, working with mouse. #977

Closed
jjones315 opened this issue Dec 5, 2024 · 0 comments

Comments

@jjones315
Copy link

Describe the bug

When using the select component if you have a select option with a false-y value/ empty string. Clicking the falsey option will cause it to be selected as expected, how ever using the keyboard no action is take when highlighting and selecting.

compare to select element clicking or using the keyboard result in the value being de-selected properly

Reproduction

https://stackblitz.com/edit/github-2uhvuu-qw9ulg?file=src%2Froutes%2F%2Bpage.svelte

Logs

n/a

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @sveltejs/kit: ^2.9.0 => 2.9.0 
    bits-ui: ^1.0.0-next.65 => 1.0.0-next.66 
    svelte: 5.5.0 => 5.5.0

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants