-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
bugneeds triageInitial label given, to be assigned correct labels and assignedInitial label given, to be assigned correct labels and assigned
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?
daisyui
Version
6.4.1
Current Behavior
The issue #4965 has already been addressed. Thank you so much for fixing. However, I tested it a bit more, there's still a corner case having same issue.
With an array field, I add a number, then try to submit. In the submit callback, I set extraError directly. It acts like #4965, the first extraError update won't trigger the form rendering error, only the second one does. And this only appear when I have formData controled by outside.
Expected Behavior
The first extraError update should work
Steps To Reproduce
Created a branch from my last reproducing repo here:
https://github.com/fangpenlin/react-jsonschema-form-extra-error-bug-reproduce/tree/array-field
The codesandbox repo can also be found here:
Environment
- OS:
- Node:
- npm:Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugneeds triageInitial label given, to be assigned correct labels and assignedInitial label given, to be assigned correct labels and assigned