-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Cdk Stepper selected property setter method indexOf not setting correct index.
this.selectedIndex = step && this.steps ? this.steps.toArray().indexOf(step) : -1;
Reproduction
Steps to reproduce:
- Create stepper using Cdk stepper guide
- Add onClick on cdkStep
- In onClick callback, set this.selected = this.steps.get(index);
- selectedIndex property of CdkStepper class not working properly.
Expected Behavior
selectedIndex property should be set properly correctly when we set selected from wrapper component.
Actual Behavior
selectedIndex set to -1
Environment
- Angular: v16
- CDK/Material: v16
- Browser(s): NA
- Operating System (e.g. Windows, macOS, Ubuntu): NA
Metadata
Metadata
Assignees
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team