react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

Form not clearing errors after fixing them

Open igorbrasileiro opened this issue 5 months ago • 3 comments

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

igorbrasileiro avatar Sep 11 '24 17:09 igorbrasileiro