You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having this issue, unmounting a field does nothing to the form, field is still there included any errors. If this field had any validation errors they still persist and prevents the form from being submitted.
Conditionally render last name by typing something in first name
type a character in last name
remove first name then enter first name again
last name value and validation errors remain
Expected behavior
unmounting a field shouldn't leave behind validation errors that prevent the form from submitting.
How often does this bug happen?
Always
Screenshots or Videos
No response
Platform
OS: Windows 10
TanStack Form adapter
None
TanStack Form version
v0.41.3
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
asegarra
changed the title
unmounting Field does not reset that fields meta including any errors
unmounting Field with validation errors prevents form from submitting
Jan 30, 2025
Describe the bug
I'm having this issue, unmounting a field does nothing to the form, field is still there included any errors. If this field had any validation errors they still persist and prevents the form from being submitted.
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/objective-hawking-n4xwq6
Steps to reproduce
Expected behavior
unmounting a field shouldn't leave behind validation errors that prevent the form from submitting.
How often does this bug happen?
Always
Screenshots or Videos
No response
Platform
TanStack Form adapter
None
TanStack Form version
v0.41.3
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: