@formio/js 5.1.0-dev.6204.b833c7c → 5.1.0-dev.6206.bfec028
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formio.form.js +2 -2
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +2 -2
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/components/_classes/nested/NestedComponent.js +3 -0
- package/lib/cjs/components/select/Select.js +1 -1
- package/lib/mjs/components/_classes/nested/NestedComponent.js +3 -0
- package/lib/mjs/components/select/Select.js +1 -1
- package/package.json +1 -1
@@ -841,6 +841,9 @@ class NestedComponent extends Field_1.default {
|
|
841
841
|
}
|
842
842
|
}
|
843
843
|
setValue(value, flags = {}) {
|
844
|
+
if (!value) {
|
845
|
+
return false;
|
846
|
+
}
|
844
847
|
// If the value is equal to the empty value, then this means we need to reset the values.
|
845
848
|
if (lodash_1.default.isEqual(value, this.emptyValue)) {
|
846
849
|
// TO-DO: For a future major release, we need to investigate removing the need for the
|
@@ -1124,7 +1124,7 @@ class SelectComponent extends ListComponent_1.default {
|
|
1124
1124
|
}
|
1125
1125
|
// Choices will return undefined if nothing is selected. We really want '' to be empty.
|
1126
1126
|
if (value === undefined || value === null) {
|
1127
|
-
value =
|
1127
|
+
value = this.emptyValue;
|
1128
1128
|
}
|
1129
1129
|
return value;
|
1130
1130
|
}
|
@@ -835,6 +835,9 @@ export default class NestedComponent extends Field {
|
|
835
835
|
}
|
836
836
|
}
|
837
837
|
setValue(value, flags = {}) {
|
838
|
+
if (!value) {
|
839
|
+
return false;
|
840
|
+
}
|
838
841
|
// If the value is equal to the empty value, then this means we need to reset the values.
|
839
842
|
if (_.isEqual(value, this.emptyValue)) {
|
840
843
|
// TO-DO: For a future major release, we need to investigate removing the need for the
|
@@ -1154,7 +1154,7 @@ export default class SelectComponent extends ListComponent {
|
|
1154
1154
|
}
|
1155
1155
|
// Choices will return undefined if nothing is selected. We really want '' to be empty.
|
1156
1156
|
if (value === undefined || value === null) {
|
1157
|
-
value =
|
1157
|
+
value = this.emptyValue;
|
1158
1158
|
}
|
1159
1159
|
return value;
|
1160
1160
|
}
|