I was trying to change the cascading menu example, but have it pop up on an initial click (and then subsequently, when mousing through the cascading submenus, have the cascading submenus open with hover)
I was almost going to file this issue to say I couldn't figure it out, but I think I have it figured out now! :)
It may be useful to have an example in the docs to help with this though
I think the trick is
- For the initial click, you do not want to use the HoverMenu component, and just have a regular MUI Menu
- For the subsequent Cascading panels, you do want the HoverMenu component
Here is a codesandbox that has the expected behavior I think https://codesandbox.io/s/restless-leftpad-p04dv3?file=/src/App.js
I was trying to change the cascading menu example, but have it pop up on an initial click (and then subsequently, when mousing through the cascading submenus, have the cascading submenus open with hover)
I was almost going to file this issue to say I couldn't figure it out, but I think I have it figured out now! :)
It may be useful to have an example in the docs to help with this though
I think the trick is
Here is a codesandbox that has the expected behavior I think https://codesandbox.io/s/restless-leftpad-p04dv3?file=/src/App.js