question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested mat-menu (sub-item) disappeared.

See original GitHub issue

Bug, feature request, or proposal:

bug

What is the expected behavior?

Submenu of mat-menu should not hide when moving mouse over it.

What is the current behavior?

When moving mouse over sub menu, it disappear but if i downgrade to v5.2.0 It worked.

What are the steps to reproduce?

I’ve reproduced at stackblitz

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

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

Angular: 5.2.6 Material: 5.2.2

Is there anything else we should know?

Take a look: video_001 1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
crisbetocommented, Feb 22, 2018

I see what you mean now. The issue was introduced in https://github.com/angular/material2/pull/9971 which caused the top-level menu to pick up the items inside the submenu as its own.

1reaction
julianobrasilcommented, Feb 22, 2018

@crisbeto, I was able to reproduce this issue in a template from the docs site: https://stackblitz.com/edit/angular-material-nested-submenu-nwwsr6

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic nested Material menu from json object in Angular 5
I tried building it running *ngFor like this for main menu and then separate on each sub menu but it ended in errors....
Read more >
A seamless guide on Angular Material Menu Component
It is quite simple to create nested menus or sub-menus. Using the matmenutriggerFor attribute, we have to add another menu to the mat-menu-item....
Read more >
Angular Material Nested Menu Working Tutorial - Therichpost
//Import Angular Material Toolbar and its related modules like menu icon, buttons; import {MatToolbarModule} from '@angular/material/ ...
Read more >
Angular Material Menu - Nested Menu using Dynamic Data
We will first learn the basics of Angular Material Menu and how to render a nested menu with a static HTML template. Then...
Read more >
Relationship of grid layout to other layout methods - CSS
I have five child items in my container, and I have given the flex ... the box for that item vanishes and the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found