Open
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.8.0
Current Behavior
Given a schema:
{
"type": "object",
"required": [
"myProp"
],
"properties": {
"myProp": {
"type": "array",
"items": {
"type": "string",
"default": "abc"
},
"minItems": 1
}
}
}
And a form:
<Form
schema={formSchema}
experimental_defaultFormStateBehavior={{
emptyObjectFields: 'populateRequiredDefaults',
arrayMinItems: 'populate',
}}
>
myProp
is an empty array in the form.
Expected Behavior
myProp
is prepopulated, i.e.:
{
"myProp": [
"abc"
]
}
Steps To Reproduce
- Open playground link
- Observe that the array is not prepopulated with "abc" as expected
Environment
- OS:
- Node:
- npm:
Anything else?
No response