Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Popup triggered by MenuItem is focusing the wrapper instead of the root when user presses ESC #831

@jurokapsiar

Description

@jurokapsiar

Bug Report

Popup has the ability to focus trigger element when it is closed by ESC key.
This does not work properly with MenuItem - in that case, the element to be triggered needs to be the root (a), not the wrapper (li) element.

Testcase

https://codesandbox.io/s/mql1160ll8?module=/example.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    vstsPaired with ticket in vsts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions