Skip to content

Form not clearing errors after fixing themΒ #4296

@igorbrasileiro

Description

@igorbrasileiro

Prerequisites

What theme are you using?

core

Version

5.20.1

Current Behavior

The issue: https://www.loom.com/share/795d1901570a4f8db4030be13e4b4782
After fixing an error in an object inside an array, the errors are not cleared and propagated to other fields.

Expected Behavior

After fixing the error in the form, clean the errors

Steps To Reproduce

  1. Go to rjsf playground
  2. get the schema from this json:
await fetch('https://htmx.store/live/_meta').then(res => res.json()).then(meta => {
    const schema = meta.schema
    schema.$ref = meta.manifest.blocks.pages['website/pages/Page.tsx'].$ref
    return schema;
})
  1. get the formData from this json:
await fetch('https://htmx.store/.decofile').then(res => res.json()).then(blocks => blocks['pages-home-c4bcbfb771e9'])
  1. enable form live validation
  2. go to section-2 > banner > alt required property
  3. clean the field. Will show an error here
  4. type something, to fix the error. The error will be maintained on section-2

Environment

- OS:
- Node:
- npm:

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