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

Bug: Focus on open gets applied to hidden elements. #524

Open
davejtoews opened this issue Jul 10, 2024 · 0 comments
Open

Bug: Focus on open gets applied to hidden elements. #524

davejtoews opened this issue Jul 10, 2024 · 0 comments

Comments

@davejtoews
Copy link

When opening a modal, focus is applied to the first focusable element w/in the modal. If the first focusable element is set to display: none or otherwise hidden w/ CSS, it will attempt but fail to set focus to that element and instead apply it to the modal itself. Ideally Modal.setFocusToFirstNode() would check for visibility.

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

1 participant