-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Avoid trapping focus in Table #6803
Conversation
Generate changelog in
|
Avoid trapping focus in TableBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
Thanks for this fix! I'm personally leaning towards not optionalizing this and treating it as a fix. I can't imagine any users that would want the Blueprint table to trap focus within it. 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving based on my thoughts above. I think this is the right fix. Let me gut check this with another person to make sure this sounds reasonable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that this should just be treated as a fix – I imagine no one wants the behavior of tables trapping focus
Fixes #3834
Checklist
Changes proposed in this pull request:
Immediately preventing default on tab key presses seems problematic since sometimes we return early and do nothing on the tab key press. This happens when the selection is already at the edge of the table and will not move further. This PR proposes that in these cases we should allow focus to freely leave the table.
I considered other solutions including:
Reviewers should focus on:
Screenshot
n/a