-
Notifications
You must be signed in to change notification settings - Fork 641
Closed
Labels
bugSomething isn't workingSomething isn't workingreactsupportTasks where the team is supporting and helping other teamsTasks where the team is supporting and helping other teams
Description
Description
If I have a TabNav within an ActionMenu.Overlay and focusable items above and below it, focus can get stuck in the TabNav and I will be unable to navigate to the top item. It seems like there is a top level focuszone for the overlay and another focuszone within the TabNav. When focus moves into the tabnav, the top level focuszone expects it to move to the rightmost tab, but the tabNav moves focus to the selected tab. This seems to cause the top level focuszone to lose track of which element is focused and it stops processing key presses to move the focus up out of the TabNav.
Steps to reproduce
- Go to https://codesandbox.io/s/primer-components-ts-testing-forked-7defd0?file=/src/index.tsx
- Click to open the menu
- Use the down arrow key to nav to the delete file button
- Try to use the up arrow key to get back to the top text field
- Observe that focus gets trapped on the selected tab.
Version
v35.9.0
Browser
Chrome
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingreactsupportTasks where the team is supporting and helping other teamsTasks where the team is supporting and helping other teams