Skip to content

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

@davejtoews

Description

@davejtoews

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions