Skip to content

Commit 29e328c

Browse files
committed
fix: reset form in stepper on each step (#3722)
### TL;DR Added form reset functionality when navigating between steps and added debugging for form state. ### What changed? - Added `form.reset()` with options to keep values but clear errors when moving to the next step in the stepper form ### How to test? 1. Navigate through a stepper form and verify that errors are cleared when moving to the next step 2. Confirm that form values are preserved when navigating between steps 3. Check the browser console to see the form state being logged ### Why make this change? This change improves the user experience by clearing validation errors when users move to the next step while preserving their input values. The console log helps with debugging form state during development.
1 parent 8c6774b commit 29e328c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/src/app/forms/stepper-form.tsx

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)