I am using angular 15.0.4
When puting a mat-tab
inside a mat-menu, I sometimes observe a strange behavior: the content of the mat-tab
is not displayed.
<mat-menu #menu="matMenu">
<mat-tab-group (click)="selectTab($event)">
<mat-tab label="Affichage"> ABC </mat-tab>
<mat-tab label="Export"> DEF </mat-tab>
</mat-tab-group>
</mat-menu>
See example below:
Corresponding stackblitz here
What could cause this bug, and how to fix it?