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

docs: Fixing virtualized list example being skipped when tabbing forward #33276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

khmakoto
Copy link
Member

Previous Behavior

When tabbing forward on the List example page, focus would skip over the Virtualized List example, but it would not be skipped over when tabbing backwards. This happens because of a weird interaction between react-window and tabster's mover.

New Behavior

This PR disables tabster's mover logic from the Virtualized List example, since it is not needed due to the list having non-interactive elements only. This PR also calls out this behavior in the example's description.

Related Issue(s)

Copy link

📊 Bundle size report

✅ No changes found

Copy link

Pull request demo site: URL

Copy link
Contributor

@george-cz george-cz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, unfortunately this is not a bug in the story, but the combination of current List implementation and tabster, where we're passing a mover down to the list even if there are no focusable elements and tabster steals the focus from the list, trying to focus on the first item inside.

While this workaround works, it does not solve the underlaying problem unfortunately.

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

Successfully merging this pull request may close these issues.

[Bug]: Virtualized list example is not reachable by TAB key
2 participants