Skip to content

Commit 2e37b4a

Browse files
authored
fix(processflow): fixes click behavior for future steps (#57)
1 parent d2c1838 commit 2e37b4a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/sbb-esta/angular-public/src/lib/processflow/processflow/processflow.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ export class ProcessflowComponent implements AfterContentInit {
7777
*/
7878
stepClick($event: any, stepIndex: number) {
7979
$event.preventDefault();
80-
this.changeStep(stepIndex);
80+
const currentIndex = this._findActiveStepIndex(this.steps.toArray());
81+
if (stepIndex < currentIndex) {
82+
this.changeStep(stepIndex);
83+
}
8184
}
8285
/**
8386
* Method to change a step in a process flow.

0 commit comments

Comments
 (0)