-
-
Notifications
You must be signed in to change notification settings - Fork 379
Closed
Labels
component: menuChanges related to the menu component.Changes related to the menu component.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/unruffled-mirzakhani-8zvqrp?file=%2Fsrc%2FDemo.tsx
menu.webm
Current behavior
Pressing Tab closes the menu and, since it's portaled and there's no other element after it, the focus goes to <body>.
Expected behavior
The focus should return to the element that triggered the menu, like how Esc works.
Context
No response
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Search keywords: base menu tab
Search keywords:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: menuChanges related to the menu component.Changes related to the menu component.type: bugIt doesn't behave as expected.It doesn't behave as expected.