cc @1Copenut
Focus isn't returned to the triggering button element when closing a context menu.
Steps to reproduce
- Go to https://elastic.github.io/eui/#/navigation/context-menu
- Click "click me to load a context menu" button.
- Tab through the menu, then press ESC to close the menu
- Verify the body tag has keyboard focus (
document.activeElement)
Plain EuiPopover components work fine. As soon as you add an EuiContextMenu to the EuiPopover the focus isn't returned correctly to the trigger button element when closing the context menu.

Related issues
cc @1Copenut
Focus isn't returned to the triggering button element when closing a context menu.
Steps to reproduce
document.activeElement)Plain
EuiPopovercomponents work fine. As soon as you add anEuiContextMenuto theEuiPopoverthe focus isn't returned correctly to the trigger button element when closing the context menu.Related issues