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

Not able to "skip" steps inside handleStep function #194

Open
michaelparkadze opened this issue Jun 3, 2024 · 0 comments
Open

Not able to "skip" steps inside handleStep function #194

michaelparkadze opened this issue Jun 3, 2024 · 0 comments

Comments

@michaelparkadze
Copy link

I have the following function

  handleStep(() => {
    const { isViable, nextViableQuestionIndex } = isQuestionVisible();

    if (!isViable && nextViableQuestionIndex) {
      console.log("going to step", nextViableQuestionIndex);
      goToStep(5);
    }
  });

when I try to programtically use goToStep function nothing really happens. when I created a button as part of the wizard step and click it it works.

I even tried creating a workaround by making a hidden button that if u click it the function works but when going about it programmatically again nothing happens.

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