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
For Date & DateTime fields of type "type": ["string", "null"], that do have "ui:emptyValue": null configured, clearing the input results the property to be completely removed from the result object.
Expected Behavior
For Date & DateTime fields of type "type": ["string", "null"], configured with "ui:emptyValue": null in their UISchema, should set a null value in the result object, consistently with how string & number fields behave.
set a value to the text, number, date & datetime fields and clear them afterwards.
while for the text & numeric fields the result object will have a property with null as a value, the form will not include at all properties for the date & datetime fields.
Environment
- OS: Ubuntu 20.04
- Node: 16.15.1
- npm: 8.12.2
Anything else?
No response
The text was updated successfully, but these errors were encountered:
thgreasi
changed the title
Date & DateTime widgets do not respect falsy ui:emptyValue
Date & DateTime widgets do not respect falsy/null/non-date ui:emptyValueJun 24, 2022
Prerequisites
What theme are you using?
core
Version
4.1.1
Current Behavior
For Date & DateTime fields of type
"type": ["string", "null"]
, that do have"ui:emptyValue": null
configured, clearing the input results the property to be completely removed from the result object.Expected Behavior
For Date & DateTime fields of type
"type": ["string", "null"]
, configured with"ui:emptyValue": null
in their UISchema, should set anull
value in the result object, consistently with how string & number fields behave.Steps To Reproduce
null
as a value, the form will not include at all properties for the date & datetime fields.Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: