Default 'null' value is not applied to a field with type ["null", "object"] #1581
Open
Description
Prerequisites
- I have read the documentation;
- In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I'm providing a shared playground link demonstrating the issue.
Description
Default 'null' value is not applied to a field with type ["null", "object"]
Steps to Reproduce
GIVEN: a property of type ["null", "object"]
AND default value is null
AND ui:emptyValue = null
See shared playground link
Expected behavior
default value is null
Actual behavior
default value is an empty object {}
both default
and ui:emptyValue
values are ignored for an object property.
Version
Version of the playground. I guess, current latest stable
Note:
It works fine for ["null", "string"]
and ["null", "number"]
types.