bug(Tabs): Nested tabs with custom mat-tab-label template is wrongly applied to parent tab too #23558
Labels
area: material/tabs
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Reproduction
Use StackBlitz to reproduce your issue:
https://stackblitz.com/edit/angular-ra4b9y?file=src/app/tab-group-custom-label-example.html
Steps to reproduce:
Expected Behavior
The parent tab-group is using the default
<mat-tab label="Parent 1">
to set its label. The child tab-group is using<ng-template mat-tab-label>Child 1</ng-template>
. The ideal behavior in this situation would be for the first tab of the parent group to have a label of Parent 1Actual Behavior
The first tab of the parent group is wrongly taking the label of its child tab group
Environment
The text was updated successfully, but these errors were encountered: