Skip to content

Nested validation rules don't work properly  #3464

Open
@abdalla-rko

Description

@abdalla-rko

Prerequisites

What theme are you using?

core

Version

5.1.0

Current Behavior

If you have a required nested field inside below the root level, the validation won't take effect until you interact with the corresponding field. The issue I currently have is when you type something in a nested field and then delete it, the validation errors of the nested field will not go away.

Expected Behavior

The validation errors of the nested field shouldn't remain if all the nested fields are empty.

Steps To Reproduce

Demo Link

  1. use the Demo Link
  2. type something in the "nested_field" field
  3. delete what you wrote
  4. Click "submit"

Environment

- OS:macOS
- Node:16.17.0
- npm:8.15.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions