How does DropdownMenu.Trigger target what to focus on? #3088
Unanswered
donovanlopez
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm wondering how, for the
DropdownMenu
, how it figures out what to focus when opening aDropdownMenu
and blurs everything else. I noticed that theDropdownMenu
has a specific behavior where, on open, the focus is only on theDropdownMenu.Content
.The issue I'm facing is, I'm creating a list of where each item component in the list will have a
DropdownMenu
. Everything works normally but when I wrap it in virtua'sVirtualizer
to make an infinite scroll list, the focus gets messed up when I open anDropdownMenu
. Normally, when opening anDropdownMenu
, the focus is all on theDropdownMenu.Content
but when I wrap it with theVirtualizer
component, I'm able to interact with other elements when theDropdownMenu
is open and even open otherDropdownMenu
s.Adding
modal={false}
toDropdownMenu.Root
fixes the problem of multipleDropdownMenu
s opening but the focus issue is still a problem.Screen.Recording.2024-08-27.at.4.19.42.PM.mov
Beta Was this translation helpful? Give feedback.
All reactions