Skip to content

Commit

Permalink
Fixed dependsOn setting when applied to a boolean field set to false …
Browse files Browse the repository at this point in the history
…by default (#4867)
  • Loading branch information
marcin-lawrowski authored and autoboxer committed Dec 10, 2018
1 parent a202478 commit 17976c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fields/types/Field.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module.exports.create = function (spec) {
mixins: [Mixins.Collapse],
statics: {
getDefaultValue: function (field) {
return field.defaultValue || '';
return typeof field.defaultValue !== 'undefined' ? field.defaultValue : '';
},
},
render () {
Expand Down

0 comments on commit 17976c3

Please sign in to comment.