Focus order in Popover #1922
Unanswered
james-ob-nf
asked this question in
Help
Replies: 1 comment
-
It sounds like you're after |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the popover component to implement a popover menu, which consists of an ordered list of buttons and links. This menu is embedded within a table row, so there are multiple instances of the menu within the page. This works great, however when tabbing through an open menu the first item to come into focus is always the first button, whether it's the first item or not. I'd like the first item in the DOM to be selected.
Using
event.preventDefault()
gives me the outcome I'm looking for, but when using this we've noticed an issue on iPhone where an open menu won't close when another trigger in the table is clicked, and both menus remain open until focus is moved outside either of the menus (and not on a trigger).Is there another way I can set focus on the first child item when a popover is opened?
Beta Was this translation helpful? Give feedback.
All reactions