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] Cannot focus last remaining item in multiple selection mode via keyboard #2443

Open
1 of 3 tasks
halljus opened this issue Oct 1, 2024 · 0 comments
Open
1 of 3 tasks
Labels

Comments

@halljus
Copy link

halljus commented Oct 1, 2024

Description

When I remove all but one item in a multiple selection Combobox using the keyboard, I expect to be able to focus (and remove) the last one, but I am unable to do so (arrow keys do not focus the last remaining item).

Steps to reproduce

  1. Go to https://sparkui.vercel.app/?path=/docs/components-combobox--docs#default-1
  2. Focus the input
  3. Press Left Arrow twice to focus the "To Kill a Mockingbird" selected item
  4. Press Delete to remove the selected item
  5. Press Tab to focus the input again
  6. Press Left Arrow

I expected it to focus the last remaining selected item ("War and Peace"), but it doesn't seem to move focus.

Spark Component and Version

@spark-ui/[email protected]

Browser

Microsoft Edge 129

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

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

No branches or pull requests

1 participant