react-use-wizard icon indicating copy to clipboard operation
react-use-wizard copied to clipboard

Not able to "skip" steps inside handleStep function

Open michaelparkadze opened this issue 1 year ago • 1 comments

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.

michaelparkadze avatar Jun 03 '24 11:06 michaelparkadze

Please provide a reproduction in StackBlitz

devrnt avatar Feb 09 '25 21:02 devrnt