Skip to content

Commit 48f373b

Browse files
Michael Hoffmannmmalerba
Michael Hoffmann
authored andcommitted
docs(cdk-stepper): add guide to create stepper (angular#14710)
* docs(cdk-stepper): add guide to create stepper * Added guide how to create a custom stepper using the CDK * Added a material example to demonstrate the custom CDK stepper * Made steps from CdkStepper public as it is necessary to build a custom stepper * Review comments
1 parent 5e954ca commit 48f373b

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
@@ -287,7 +287,7 @@ export class CdkStepper implements AfterViewInit, OnDestroy {
287287
if (this._selectedIndex != newIndex &&
288288
!this._anyControlsInvalidOrPending(newIndex) &&
289289
(newIndex >= this._selectedIndex || this.steps.toArray()[newIndex].editable)) {
290-
this._updateSelectedItemIndex(index);
290+
this._updateSelectedItemIndex(newIndex);
291291
}
292292
} else {
293293
this._selectedIndex = newIndex;

0 commit comments

Comments
 (0)