Skip to content

[EuiFocusTrap] Can be funky when it comes to returning focus to originating button #3170

@cchaos

Description

@cchaos

Originally caught by @myasonik in #3117, when the EuiCollapsibleNav drawer is opened and then closed for the first time, the focus doesn't correctly return to the triggering button. However, all subsequent interactions do.

Screen Capture on 2020-03-25 at 17-53-42

Interestingly enough I was able to get the bad return focus behavior consistently when I set disabled={true} .

Screen Capture on 2020-03-25 at 17-56-18

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