Skip to content

Validation regression starting from version 5.20.0+ #4343

@AlimovSV

Description

@AlimovSV

Prerequisites

What theme are you using?

core

Version

5.21.2

Current Behavior

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.

Environment

- OS:
- Node:
- npm:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions