You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nested menu at level 2 in the https://zagjs.com/components/react/nested-menu work as expected, but I would like to see some code examples for deeper nesting levels.
In particular, I don't understand menu.setChild and menu.setParent, so I simply tried executing level_2_Menu.setChild(level_3_Machine) and level_3_Menu.setParent(level_2_Machine) in the same place(in setTimeout), but navigating from level 2 to level 3 using the keyboard doesn't work.
This discussion was converted from issue #2036 on November 21, 2024 14:02.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The nested menu at level 2 in the https://zagjs.com/components/react/nested-menu work as expected, but I would like to see some code examples for deeper nesting levels.
In particular, I don't understand
menu.setChild
andmenu.setParent
, so I simply tried executinglevel_2_Menu.setChild(level_3_Machine)
andlevel_3_Menu.setParent(level_2_Machine)
in the same place(in setTimeout), but navigating from level 2 to level 3 using the keyboard doesn't work.💥 Steps to reproduce
💻 Link to reproduction
CodeSandbox reproduction: https://codesandbox.io/p/sandbox/p72ftj
🧐 Expected behavior
🧭 Possible Solution
🌍 System information
📝 Additional information
Beta Was this translation helpful? Give feedback.
All reactions