Skip to content

Commit

Permalink
fix(kit): Stepper fix flashing styles
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin committed Oct 30, 2024
1 parent 397316a commit d7af44a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/kit/components/stepper/stepper.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ export class TuiStepperComponent {
}

indexOf(step: HTMLElement): number {
return tuiGetOriginalArrayFromQueryList(this.steps).findIndex(
const index = tuiGetOriginalArrayFromQueryList(this.steps).findIndex(
({nativeElement}) => nativeElement === step,
);

return index < 0 ? NaN : index;
}

isActive(index: number): boolean {
Expand Down

0 comments on commit d7af44a

Please sign in to comment.