Skip to content

Commit 8675f16

Browse files
fix(stepper): Prevent throwing an error when an active step is clicked - 16.1.x (#13794)
Co-authored-by: Hristo <[email protected]>
1 parent 8443948 commit 8675f16

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
@@ -560,7 +560,7 @@ export class IgxStepComponent extends ToggleAnimationPlayer implements IgxStep,
560560
this.stepperService.expand(this);
561561

562562
if (!this.animationSettings.closeAnimation) {
563-
this.stepperService.previousActiveStep.openAnimationPlayer?.finish();
563+
this.stepperService.previousActiveStep?.openAnimationPlayer?.finish();
564564
}
565565

566566
if (!this.animationSettings.openAnimation) {

0 commit comments

Comments
 (0)