Closed
Description
Reproduction
I am trying to generate n-level nested mat-menu using dynamic data,
If you repeat the reproduction steps with static html you will get the same issue.
here is theStackBlitz https://stackblitz.com/edit/angular-dlzv3q-fofemy
Steps to reproduce:
- wrap mat-menu-item in a ng-template outside of mat-menu
- use ng-container with ngTemplateOutlet inside mat-menu to render template created in step 1
Expected Behavior
mat-menu should display the arrow for nested mat-menu and on hover it should display the nested mat-menu
Actual Behavior
mat-menu is showing only top-level mat-menu-items without arrow and hover behavior, but on clicking an mat-menu-item(which have nested menu) main menu closes and nested menu opens up..
Environment
- Angular: 8.1.0
- CDK/Material: 8.0.2
- Browser(s): Chrome
- Operating System: Windows