Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.
This repository was archived by the owner on May 16, 2024. It is now read-only.

focusFirstElement breaks with flat HTML structure #21

@andrewrubin

Description

@andrewrubin

This refers to the code in the focusFirstElement function, which loops through the modal content to check for the "first" thing to set the users focus to.

If there is a flat HTML structure — i.e. no nested HTML tags; as in, just a <div> or just some text — this call will break the modal's functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions