Skip to content

Add documentation example for how to use cascading menu with initial click instead of initial hover? #105

Description

@cmdcolin

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

  1. For the initial click, you do not want to use the HoverMenu component, and just have a regular MUI Menu
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions