Skip to content

[Accessibility] Can't close menu without closing modal #6082

@susanroberts

Description

@susanroberts

I am working on implementing react-select inside of a modal. When doing accessibility testing I noticed that if the menu is open and I press Esc, it closes the modal instead of closing the menu. I am using vaul in my project but I noticed the portaling example in the documentation (which uses atlaskit) is also having the same issue.

Expected behavior: If there is a react-select in a modal and the menu is open, pressing escape should close the menu only and the modal should stay open.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/bug-unconfirmedIssues that describe a bug that hasn't been confirmed by a maintainer yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions