@formio/js 5.1.0-dev.6112.06b0f26 → 5.1.0-dev.6112.86987a5
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 +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +1 -1
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/components/_classes/component/Component.js +7 -5
- package/lib/mjs/components/_classes/component/Component.js +7 -5
- package/package.json +1 -1
@@ -2592,11 +2592,13 @@ class Component extends Element_1.default {
|
|
2592
2592
|
});
|
2593
2593
|
if (utils_1.default.isLayoutComponent(this.component) && this.component.clearOnHide === true && !this.hasValue()) {
|
2594
2594
|
utils_1.default.eachComponent(this.components, (component) => {
|
2595
|
-
component.
|
2596
|
-
|
2597
|
-
|
2598
|
-
|
2599
|
-
|
2595
|
+
if (component.component.clearOnHide !== false) {
|
2596
|
+
component.setValue(null, {
|
2597
|
+
noUpdateEvent: true,
|
2598
|
+
noDefault: true
|
2599
|
+
});
|
2600
|
+
component.unset();
|
2601
|
+
}
|
2600
2602
|
});
|
2601
2603
|
}
|
2602
2604
|
this.unset();
|
@@ -2584,11 +2584,13 @@ export default class Component extends Element {
|
|
2584
2584
|
});
|
2585
2585
|
if (FormioUtils.isLayoutComponent(this.component) && this.component.clearOnHide === true && !this.hasValue()) {
|
2586
2586
|
FormioUtils.eachComponent(this.components, (component) => {
|
2587
|
-
component.
|
2588
|
-
|
2589
|
-
|
2590
|
-
|
2591
|
-
|
2587
|
+
if (component.component.clearOnHide !== false) {
|
2588
|
+
component.setValue(null, {
|
2589
|
+
noUpdateEvent: true,
|
2590
|
+
noDefault: true
|
2591
|
+
});
|
2592
|
+
component.unset();
|
2593
|
+
}
|
2592
2594
|
});
|
2593
2595
|
}
|
2594
2596
|
this.unset();
|