Components: setting second step as active step in Material-2 stepper does not work

Created on 16 Oct 2017  路  4Comments  路  Source: angular/components

Bug, feature request, or proposal:

Bug in mat-stepper

What is the expected behavior?

setting active to mat-step does not make it active

What is the current behavior?

step 1 is always active

What are the steps to reproduce?

<mat-vertical-stepper> <mat-step label="Agreement Preparation"> <p>Agreement preparion is intiated by our side </p> </mat-step> <mat-step label="Ready for Biometric" selected active> <p>Agreement preparion is intiated by our side </p> </mat-step> <mat-step label="Document in Submission"> <p>Agreement preparion is intiated by our side </p> </mat-step> </mat-vertical-stepper>

Which versions of Angular, Material?

"@angular/core": "4.4.3",
@angular/material": "^2.0.0-beta.12

cannot reproduce

Most helpful comment

Its working after using ViewChild for MatStepper DEMO

All 4 comments

Please provide a reproduction in either Plunker or StackBlitz

Its working after using ViewChild for MatStepper DEMO

How can you mark the previous steps as completed after initializing selectedIndex?

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings