Skip to content

Commit

Permalink
fix(processflow): fixes click behavior for future steps (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation authored Jun 25, 2019
1 parent d2c1838 commit 2e37b4a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export class ProcessflowComponent implements AfterContentInit {
*/
stepClick($event: any, stepIndex: number) {
$event.preventDefault();
this.changeStep(stepIndex);
const currentIndex = this._findActiveStepIndex(this.steps.toArray());
if (stepIndex < currentIndex) {
this.changeStep(stepIndex);
}
}
/**
* Method to change a step in a process flow.
Expand Down

0 comments on commit 2e37b4a

Please sign in to comment.