You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not an issue. It was not applying the defaults because the formData has an empty array and the array mergeExtraDefaults was not enabled. But there is an issue when you enable the mergeExtraDefaults and you have formData as an empty array, the default on the root of the array schema doesn't get applied and only applies the default from the items property (see demo). If formData is undefined or null, it will apply the default from the root schema and items.default and the root default will take precedence over item default.
Prerequisites
What theme are you using?
core
Version
5.21.2
Current Behavior
Array defaults don't work at the root of the schema.
Expected Behavior
Array defaults should work at the root of the schema and not only when it's nested.
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: