Skip to content

Commit 81d9995

Browse files
crisbetommalerba
authored andcommitted
fix(stepper): content not being rendered out initially with ivy (#15486)
Fixes the stepper's content not being shown on the first render with Ivy, because we assume that the template with be present on init.
1 parent e082c25 commit 81d9995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/stepper/stepper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class CdkStep implements OnChanges {
122122
@ContentChild(CdkStepLabel) stepLabel: CdkStepLabel;
123123

124124
/** Template for step content. */
125-
@ViewChild(TemplateRef) content: TemplateRef<any>;
125+
@ViewChild(TemplateRef, {static: true}) content: TemplateRef<any>;
126126

127127
/** The top level abstract control of the step. */
128128
@Input() stepControl: AbstractControl;

0 commit comments

Comments
 (0)