react-jsonschema-form
react-jsonschema-form copied to clipboard
Form not clearing errors after fixing them
Prerequisites
- [X] I have searched the existing issues
- [X] I understand that providing a SSCCE example is tremendously useful to the maintainers.
- [X] I have read the documentation
- [ ] Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
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
- Go to rjsf playground
- 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;
})
- get the formData from this json:
await fetch('https://htmx.store/.decofile').then(res => res.json()).then(blocks => blocks['pages-home-c4bcbfb771e9'])
- enable form
live validation
- go to
section-2
>banner
>alt
required property - clean the field. Will show an error here
- type something, to fix the error. The error will be maintained on
section-2
Environment
- OS:
- Node:
- npm:
Anything else?
No response