@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.
@@ -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.setValue(null, {
2596
- noUpdateEvent: true,
2597
- noDefault: true
2598
- });
2599
- component.unset();
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.setValue(null, {
2588
- noUpdateEvent: true,
2589
- noDefault: true
2590
- });
2591
- component.unset();
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.1.0-dev.6112.06b0f26",
3
+ "version": "5.1.0-dev.6112.86987a5",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {