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
Describe the bug
We are using nested form fields (e. g. "person.firstName") in combination with yup validation schemas. The validation gets triggered on onSubmit but it doesn’t work with triggerValidation(['person.firstName', ...]). triggerValidation('person.firstName') works but the validation doesn’t get triggered when changing the fields input value.
Describe the bug
We are using nested form fields (e. g. "person.firstName") in combination with yup validation schemas. The validation gets triggered on onSubmit but it doesn’t work with
triggerValidation(['person.firstName', ...])
.triggerValidation('person.firstName')
works but the validation doesn’t get triggered when changing the fields input value.To Reproduce
Steps to reproduce the behavior:
errors
is still an empty objectCodesandbox link
https://codesandbox.io/s/bold-murdock-pq8l2
Expected behavior
I would expect that triggerValidation works with an array with nested form field names an that onChange triggers a revalidation.
The text was updated successfully, but these errors were encountered: