@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@papernote/ui",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "type": "module",
5
5
  "description": "A modern React component library with a paper notebook aesthetic - minimal, professional, and expressive",
6
6
  "main": "dist/index.js",
@@ -68,8 +68,11 @@ export default function FormWizard({
68
68
  setIsSubmitting(false);
69
69
  }
70
70
  } else {
71
- // Go to next step
72
- goToStep(currentStep + 1);
71
+ // Advance to next step directly (don't use goToStep which checks completedSteps
72
+ // before React has re-rendered with the updated state)
73
+ const nextStepIndex = currentStep + 1;
74
+ setCurrentStep(nextStepIndex);
75
+ onStepChange?.(nextStepIndex);
73
76
  }
74
77
  };
75
78