-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Closed
Copy link
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- 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.x
Current Behavior
Currently error messages are not getting reset for ArrayFieldItemTemplate, If I have done validation and do removal and new addition.
Expected Behavior
Error messages should reset.
Steps To Reproduce
- go to this playground
{
"definitions": {
"Thing": {
"type": "object",
"properties": {
"name": {
"type": "string",
"default": "Default name"
}
}
}
},
"type": "object",
"properties": {
"listOfStrings": {
"type": "array",
"title": "A list of strings",
"items": {
"type": "string"
}
}
}
}
- add new row and click on validate

- now remove the last array item.

- Add new item again.

Ideally error message should not come again, if this is a new row. Basically schema is containing errors and not resetting remove and add operation.
Environment
- OS:
- Node:
- npm: