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

Select Keyboard Shortcuts Bug #602

Closed
jjones315 opened this issue Jul 8, 2024 · 3 comments · May be fixed by #469
Closed

Select Keyboard Shortcuts Bug #602

jjones315 opened this issue Jul 8, 2024 · 3 comments · May be fixed by #469
Labels
Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5.

Comments

@jjones315
Copy link

Describe the bug

When focused on a select trigger, typing "a" on the keyboard should select the first element in the list that starts with "a", instead the first key click opens the popover and the next click focuses the appropriate item and subsequent clicks work appropriately.

to reproduce

focus native select element
type s "Svelte Orange 1" is selected
type s again "Svelte Orange 2" is selected

tab to focus bits-ui select element
type s popover is opened
type s again "Svelte Orange 1" is selected
type s again "Svelte Orange 2" is selected

Reproduction

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

Logs

No response

System Info

System:
    OS: Windows 11 10.0.22621
    CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900
    Memory: 4.63 GB / 31.70 GB
  Binaries:
    Node: 21.6.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.4 - ~\AppData\Local\pnpm\pnpm.EXE
    bun: 1.1.15 - ~\AppData\Roaming\npm\bun.CMD
  Browsers:
    Edge: Chromium (126.0.2592.87)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    @sveltejs/kit: ^2.5.10 => 2.5.17
    bits-ui: ^0.21.10 => 0.21.10
    svelte: 5.0.0-next.162 => 5.0.0-next.162

Severity

annoyance

@huntabyte huntabyte added the Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5. label Jul 9, 2024
@huntabyte huntabyte mentioned this issue Jul 9, 2024
3 tasks
@huntabyte huntabyte mentioned this issue Jul 31, 2024
70 tasks
@huntabyte
Copy link
Owner

Closing as fixed in bits-ui@next

@jjones315
Copy link
Author

Hi! @next is closer to native, but still not 100%. when there are multiple options hitting the leading character again does not cycle through the options. for example US States 'T' goes to "TX" instead of "TN" as the native select does, then hitting 'T' does not cycle through 'TN' and TX'.

Let me know if a repro would help, in theory the old demo still still demonstrates the issue but its still pointing @latest.

Thanks!

@jjones315
Copy link
Author

After testing again, when the select box is open 'Tx' is selected as stated about, When closed 'Tn' is selected. neither state will cycle correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants