Skip to content

fix(create): keep wizard form mounted across steps - #899

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/wizard-preserve-form-state
Sep 5, 2026
Merged

fix(create): keep wizard form mounted across steps#899
github-actions[bot] merged 1 commit into
mainfrom
fix/wizard-preserve-form-state

Conversation

@catomean

@catomean catomean commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Live dogfood found OrangeCat project create broken: advancing wizard steps wiped title/description, and Create Project did nothing.
  • Cause: EntityCreationWizard wrapped each step in motion.div key={currentStep}, remounting EntityForm (which only applies initialValues on mount).
  • Fix: keep one EntityForm instance across content steps; only the template step stays animated/keyed.

Test plan

  • /dashboard/projects/create — enter title on step 1, Next, confirm title still present
  • Complete Create Project; lands on new project page
  • Template step still selectable; Start from scratch → form works
  • Other wizard entities (product/service) preserve fields across steps

Animating with key={currentStep} remounted EntityForm on every Next,
wiping entered fields so Create Project submitted empty / no-oped
(live dogfood 2026-09-06).
@github-actions
github-actions Bot merged commit 09363ca into main Sep 5, 2026
6 checks passed
@github-actions
github-actions Bot deleted the fix/wizard-preserve-form-state branch September 5, 2026 23:10
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

Successfully merging this pull request may close these issues.

1 participant