Skip to content

Commit f16b427

Browse files
authored
Enable "next button" if step is completed.
I must allow the users to review the previous steps of a form. Since the "can-continue" event is triggered by Vee Validate, if the form is correct the user must be able to continue after going back and deciding not to make changes at all.
1 parent c9aff78 commit f16b427

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/HorizontalStepper.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ export default {
151151
if (!back) {
152152
this.$emit("completed-step", this.previousStep);
153153
}
154+
155+
if(this.steps[index].completed) {
156+
this.canContinue = true;
157+
}
158+
154159
}
155160
this.$emit("active-step", this.currentStep);
156161
},

0 commit comments

Comments
 (0)