@papernote/ui 1.7.4 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5422,8 +5422,11 @@ function FormWizard({ steps, onComplete, onStepChange, showStepNumbers = true, a
5422
5422
  }
5423
5423
  }
5424
5424
  else {
5425
- // Go to next step
5426
- goToStep(currentStep + 1);
5425
+ // Advance to next step directly (don't use goToStep which checks completedSteps
5426
+ // before React has re-rendered with the updated state)
5427
+ const nextStepIndex = currentStep + 1;
5428
+ setCurrentStep(nextStepIndex);
5429
+ onStepChange?.(nextStepIndex);
5427
5430
  }
5428
5431
  };
5429
5432
  // Previous step