Skip to content

fix(form-core): clear onSubmit error for fields without associated instance#2180

Open
seanwu1105 wants to merge 1 commit into
TanStack:mainfrom
seanwu1105:main
Open

fix(form-core): clear onSubmit error for fields without associated instance#2180
seanwu1105 wants to merge 1 commit into
TanStack:mainfrom
seanwu1105:main

Conversation

@seanwu1105

Copy link
Copy Markdown

🎯 Changes

When a field does not have an associated instance (e.g. <form.Field />), its error map never get reset when the value is changed by form.setFieldValue. This PR fixes it to ensure error state is correctly updated.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant