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
const validationErrors: ValidationError[] = await form.validateAllFields('submit');
return empty ValidationError array even if some fields are not valid.
in a screenshot, there are two places with "calculation[0].name" validation data.
state.errors (error present)
fieldMeta (no error, Why?)
Field "...name" is not valid, but fieldMeta without an error.
isFieldsValid: true but errors array not empty
Your minimal, reproducible example
code
Steps to reproduce
define form.
Make some fields not valid.
Trigger await form.handleSubmit();
Take a look at validationErrors: ValidationError[];
Describe the bug
const validationErrors: ValidationError[] = await form.validateAllFields('submit');
return empty ValidationError array even if some fields are not valid.
in a screenshot, there are two places with "calculation[0].name" validation data.
Field "...name" is not valid, but fieldMeta without an error.
Your minimal, reproducible example
code
Steps to reproduce
define form.
Make some fields not valid.
Trigger await form.handleSubmit();
Take a look at validationErrors: ValidationError[];
const handleSave = async (form) => {
await form.handleSubmit();
};
Expected behavior
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
TanStack Form adapter
react-form
TanStack Form version
1.0.0
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: