Skip to content

Commit eec7c73

Browse files
chuckjazandrewseguin
authored andcommitted
fix(chip,stepper): compile cleanly with "fullTemplateTypeCheck" (#8889)
Using chip or step-header in an application will cause errors if the application enables `"fullTemplateTypeCheck"`.
1 parent baf22ec commit eec7c73

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/lib/chips/chip-list.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,6 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
136136
/** The chip input to add more chips */
137137
protected _chipInput: MatChipInput;
138138

139-
/** The aria-describedby attribute on the chip list for improved a11y. */
140-
protected _ariaDescribedby: string;
141-
142139
/** Id of the chip list */
143140
protected _id: string;
144141

@@ -156,7 +153,10 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
156153
/** Placeholder for the chip list. Alternatively, placeholder can be set on MatChipInput */
157154
protected _placeholder: string;
158155

159-
/** Tab index for the chip list. */
156+
/** The aria-describedby attribute on the chip list for improved a11y. */
157+
_ariaDescribedby: string;
158+
159+
/** Tab index for the chip list. */
160160
_tabIndex = 0;
161161

162162
/**

src/lib/stepper/step-header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[class.mat-step-label-active]="active"
1111
[class.mat-step-label-selected]="selected">
1212
<!-- If there is a label template, use it. -->
13-
<ng-container *ngIf="_templateLabel()" [ngTemplateOutlet]="label.template">
13+
<ng-container *ngIf="_templateLabel()" [ngTemplateOutlet]="_templateLabel()!.template">
1414
</ng-container>
1515
<!-- It there is no label template, fall back to the text label. -->
1616
<div class="mat-step-text-label" *ngIf="_stringLabel()">{{label}}</div>

0 commit comments

Comments
 (0)