-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
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.24.1
Current Behavior
Field data inside an array can't be set to empty when a default value is set and mergeDefaultsIntoFormData
is set to 'useFormDataIfPresent'
. This issue only occurs when the field is directly an item of the array field. In any other cases field data can be set to an empty value.
Expected Behavior
Fields data inside an array can be set to empty when a default is set.
Steps To Reproduce
- Click here to open the demo
- Try to clear the arrayWithDefaults-1 field and you'll notice that it's not possible.
- Try to clear nestedField or stringField and you'll notice that it is working properly.
Environment
- OS:macos
- Node:
- npm:
Anything else?
No response