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

Detect "next" button click to use certain logic for the certain step. #63

Open
fromnt34 opened this issue Dec 16, 2020 · 0 comments
Open

Comments

@fromnt34
Copy link

fromnt34 commented Dec 16, 2020

I need to make it that way: if you press the "next" button, the step is validated while using a certain logic. I know that there was already a similar problem but there as a solution was suggested to use the method beforeNextStep:

methods: {
    beforeNextStep({ currentStep }, next) {
    // Here your logic
    ........
    
    // Then next
    next();
}

How I can use a certain logic for a certain step in this case is not clear, since in currentStep there is only name and index.
Thanks.

@fromnt34 fromnt34 changed the title Detect "next" button click to use specific logic for the current step. Detect "next" button click to use certain logic for the certain step. Dec 16, 2020
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

No branches or pull requests

1 participant