If formData changes externally and liveValidate is true, errors are not re-validated based on the new formData. Version 5.19.4 works fine. This issue causes a problem in the scenario where the data is stored in an external storage and the schema has widgets that open dialogs that change the data using redux actions. In this case, the user sees the field filled in, but in an invalid state.
Expected Behavior
Errors should be actual against form data
Steps To Reproduce
Open playground. You will see one field with required error (because formData.firstName is empty).
Paste the form data:
{
"firstName": "123"
}
You will see that First name field will contains the 123 but the field still invalid.
Prerequisites
What theme are you using?
core
Version
5.21.2
Current Behavior
If
formData
changes externally andliveValidate
is true, errors are not re-validated based on the new formData. Version 5.19.4 works fine. This issue causes a problem in the scenario where the data is stored in an external storage and the schema has widgets that open dialogs that change the data using redux actions. In this case, the user sees the field filled in, but in an invalid state.Expected Behavior
Errors should be actual against form data
Steps To Reproduce
123
but the field still invalid.Environment
Anything else?
No response