-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation example for how to use cascading menu with initial click instead of initial hover? #105
Comments
If interested I can turn this into a PR for the repo to update the demo directory |
random note, my attempts thus far produce the React.forwardRef related errors in mui4 but not in mui5 e.g. like #11 muiv4 version https://codesandbox.io/s/romantic-danny-dvo7zm?file=/src/App.js hanven't found the exact fix for the muiv4 version yet but might not be critical since it runs anyways |
sorry for the delay, I'm gonna have to do some research to figure out how to do this. It's kind of a catch-22 because:
There's some debate about if Might just have to implement my own click away listener... |
no worries on that :) for my particular use case, it feels like the code sandbox has the right behavior (click initially opens menu, not hovermenu, and then subsequent mouseovers create hovermenus), so not sure e.g. if i am running into the (2) for the catch-22? 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
The text was updated successfully, but these errors were encountered: