Skip to content

TrapFocus should only return focus if it is lost to the body #596

Description

@egucciar

TrapFocus assumes if focus is lost , to return it back to the modal. I think this action should only occur if the focus is lost to the body, because of the mutation observe intent is clearly to restore focus if the focused element de-rendered, not if we intentionally move focus elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Awaiting / Blocked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions