-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
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
When the extraError prop is passed to the Form component, any updates to extraError cause the library to remove all dynamically added array fields and refresh the UI components unexpectedly.
Screen.Recording.2024-10-29.at.11.19.36.AM.mov
You can find the check the example code here:
https://codesandbox.io/p/devbox/2gvwxk
Expected Behavior
I expect the fields to remain on the page and not disappear.
Steps To Reproduce
- Pass the
extraError
prop to the Form component. - Provide a schema with an array.
- Add a couple of array elements
- Update the extraError value.
- Observe that all previously added array fields are removed, and the UI refreshes.
Environment
- OS: Mac and Ubuntu
- Node: 22.2
- npm: 10.7
Anything else?
I was trying to implement this feature when face with this error:
#617 (comment)
Also, Let me thank you for all the hard works, I know it is not easy to be an OSS developer.
BTW, I am willing to fix the issue myself but as I am new to this repo, needs some pointers on where this problem is originated.
wpmonty