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

Add the option for keyboard navigation with Virtualizer #579

Open
michael-lauridsen opened this issue Dec 10, 2024 · 1 comment
Open

Add the option for keyboard navigation with Virtualizer #579

michael-lauridsen opened this issue Dec 10, 2024 · 1 comment

Comments

@michael-lauridsen
Copy link

michael-lauridsen commented Dec 10, 2024

Is your feature request related to a problem? Please describe.
I have the issue that keyboard navigation does not work properly with the Virtualizer component for items not being rendered. This causes an issue with accessibility when trying to enable keyboard navigation in a long list.
The issue can be reproduced in the official demo: Radix Select with Virtualizer - For example if you open the select and press B you will only cycle through the shown items, but never the ones further down in the list. I would expect it to navigate through the whole list before it loops.

Describe the solution you'd like
Option to reactively set the index or a scrollTo function.

Describe alternatives you've considered
I have tried to handle finding the index of the child item that starts with the key pressed, but I ended being stuck as I could not find a way afterwards to control the list.

Additional context
bfe15326-2798-41c9-9418-0ef9bda0e3bc

@inokawa
Copy link
Owner

inokawa commented Dec 21, 2024

Option to reactively set the index or a scrollTo function.

Could you explain it in detail?

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