Skip to content

Commit 876727d

Browse files
crisbetommalerba
authored andcommitted
fix(stepper): content not being rendered out initially with ivy (#15485)
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 d525f9c commit 876727d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/stepper/stepper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class CdkStep implements OnChanges {
121121
@ContentChild(CdkStepLabel) stepLabel: CdkStepLabel;
122122

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

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

0 commit comments

Comments
 (0)