Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always enable "next" button after going back to a completed step. #35

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

otrigg
Copy link

@otrigg otrigg commented Feb 28, 2019

I needed the users to be able to go back to the previous step to give a quick review to their already filled form.
Problem on my app was:

  • Vee validate is used to fire the "can-continue" event;
  • If the user decides to go back to review the form data and makes no changes, the "next" button is disabled because the "canContinue" variable is set to false again and no event is fired.

I'd like to propose a simple prop for the horizontal-stepper component.
If set to "true", it always enable the "next" button of a completed step.

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.
Enable "next button" if step is completed.
The prop review can be applied to the horizontal-stepper component. If set to true, it always enable the "next" button if the step is complete. It's useful when giving a quick review to a previously completed (and correct) form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant