Delete the value of an optional text/image widget results in an empty string value #7120
Labels
type: bug
code to address defects in shipped code
Content-Length: 221835 | pFad | https://github.com/decaporg/decap-cms/issues/7120
E3Fetched URL: https://github.com/decaporg/decap-cms/issues/7120
Alternative Proxies:
Describe the bug
If a text/image widget is
required: false
, removing the existing value of the widget would left an empty string value, rather thanundefined
ornull
.To Reproduce
Expected behavior
Remove the fields completely if the widget is optional and empty.
Screenshots
Applicable Versions:
CMS configuration
Additional context
This bug is issued in #995, #2007, #2848, #1449, #2017. As replied #995 (comment), seems this bug should be fixed since 3.0.0.
The text was updated successfully, but these errors were encountered: