We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arrays abnormally display form defaultValues after removeValue & pushValue.
It appears that a Field mount has been triggered.
https://codesandbox.io/p/sandbox/vibrant-zhukovsky-9x3l6s
delete
name1
name2
Add person
Expect show empty value when add person.
Every time
react-form
v0.41.0
v5.6.3
A valid solution: When pushing a value, assign a new value. Like pushValue({ name: "" })
pushValue({ name: "" })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Arrays abnormally display form defaultValues after removeValue & pushValue.
It appears that a Field mount has been triggered.
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/vibrant-zhukovsky-9x3l6s
Steps to reproduce
delete
to deletename1
delete
to deletename2
Add person
to add new person,will showname1
&name2
, which is form defaultValues.Expected behavior
Expect show empty value when add person.
How often does this bug happen?
Every time
Screenshots or Videos
Platform
TanStack Form adapter
react-form
TanStack Form version
v0.41.0
TypeScript version
v5.6.3
Additional context
A valid solution:
When pushing a value, assign a new value. Like
pushValue({ name: "" })
The text was updated successfully, but these errors were encountered: