Skip to content

Commit fa6baf1

Browse files
fix(stepper): Prevent throwing an error when an active step is clicked - 17.0.x (#13795)
Co-authored-by: Hristo <[email protected]>
1 parent 9aaf8ba commit fa6baf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/stepper/step/step.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ export class IgxStepComponent extends ToggleAnimationPlayer implements IgxStep,
561561
this.stepperService.expand(this);
562562

563563
if (!this.animationSettings.closeAnimation) {
564-
this.stepperService.previousActiveStep.openAnimationPlayer?.finish();
564+
this.stepperService.previousActiveStep?.openAnimationPlayer?.finish();
565565
}
566566

567567
if (!this.animationSettings.openAnimation) {

0 commit comments

Comments
 (0)