Skip to content

Support MouseOver For Menu Instead Of Click #2080

@davidwilcox

Description

@davidwilcox

Bug, feature request, or proposal:

I would like an option to be available for MdMenu that will open it when the mouse is over the menu element, and close it when the mouse leaves the menu element, or the menu dropdown.

What is the current behavior?

It seems that the main interface into MdMenu is where the user should click on it. This is unacceptable for my use case.

There is also a programmatic API. However, it will be extremely tricky for me to trigger on mouse leave of the entire menu dropdown (though I probably could do on mouse leave of the menu icon).

What is the use-case or motivation for changing an existing behavior?

I would like to mimic a menu structure similar to what airbnb has on their site (go to airbnb.com, login and look at the user profile). It opens as soon as you mouse over it.

Which versions of Angular, Material, OS, browsers are affected?

All.

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