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

Combobox: keyboard nav when items aren't immediately mounted #903

Closed
MilosNikolic opened this issue Nov 10, 2024 · 1 comment
Closed

Combobox: keyboard nav when items aren't immediately mounted #903

MilosNikolic opened this issue Nov 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@MilosNikolic
Copy link

Describe the bug

When I try to implement debounce to Combobox, the arrow navigation to select an item doesn't work.
In the minimal reproduction i use Runed, but i tried in other ways as well with no success.

Reproduction

https://www.sveltelab.dev/?provider=github&owner=MilosNikolic&repo=bits-combobox-debounce-issue

Logs

No response

System Info

System:
    OS: macOS 15.1
    CPU: (8) arm64 Apple M1
    Memory: 540.75 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.2.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.8.3 - /opt/homebrew/bin/npm
    pnpm: 8.8.0 - /opt/homebrew/bin/pnpm
    bun: 1.1.29 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 130.0.6723.117
    Safari: 18.1
  npmPackages:
    @sveltejs/kit: ^2.8.0 => 2.8.0 
    bits-ui: ^1.0.0-next.49 => 1.0.0-next.49 
    svelte: ^5.1.13 => 5.1.13

Severity

annoyance

@huntabyte
Copy link
Owner

Thanks for the reproduction. I believe I know what is causing this and a possible way to resolve this.

@huntabyte huntabyte self-assigned this Nov 11, 2024
@huntabyte huntabyte changed the title When implementing debounce, arrow navigation doesn't work Combobox: keyboard nav doesn't work when items aren't immediately mounted Nov 11, 2024
@huntabyte huntabyte changed the title Combobox: keyboard nav doesn't work when items aren't immediately mounted Combobox: keyboard nav when items aren't immediately mounted Nov 11, 2024
@huntabyte huntabyte added bug Something isn't working next labels Nov 11, 2024
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