|
1 | 1 | <mat-tab-header #tabHeader |
2 | | - [selectedIndex]="selectedIndex" |
3 | | - [disableRipple]="disableRipple" |
4 | | - (indexFocused)="_focusChanged($event)" |
5 | | - (selectFocusedIndex)="selectedIndex = $event"> |
| 2 | + [selectedIndex]="selectedIndex || 0" |
| 3 | + [disableRipple]="disableRipple" |
| 4 | + (indexFocused)="_focusChanged($event)" |
| 5 | + (selectFocusedIndex)="selectedIndex = $event"> |
6 | 6 | <div class="mat-tab-label" role="tab" matTabLabelWrapper mat-ripple cdkMonitorElementFocus |
7 | | - *ngFor="let tab of _tabs; let i = index" |
| 7 | + *ngFor="let tab of _tabs.toArray(); let i = index" |
8 | 8 | [id]="_getTabLabelId(i)" |
9 | 9 | [attr.tabIndex]="_getTabIndex(tab, i)" |
10 | 10 | [attr.aria-posinset]="i + 1" |
|
36 | 36 | [class._mat-animation-noopable]="_animationMode === 'NoopAnimations'" |
37 | 37 | #tabBodyWrapper> |
38 | 38 | <mat-tab-body role="tabpanel" |
39 | | - *ngFor="let tab of _tabs; let i = index" |
| 39 | + *ngFor="let tab of _tabs.toArray(); let i = index" |
40 | 40 | [id]="_getTabContentId(i)" |
41 | 41 | [attr.aria-labelledby]="_getTabLabelId(i)" |
42 | 42 | [class.mat-tab-body-active]="selectedIndex == i" |
43 | | - [content]="tab.content" |
44 | | - [position]="tab.position" |
| 43 | + [content]="tab.content!" |
| 44 | + [position]="tab.position!" |
45 | 45 | [origin]="tab.origin" |
46 | 46 | [animationDuration]="animationDuration" |
47 | 47 | (_onCentered)="_removeTabBodyWrapperHeight()" |
|
0 commit comments