@formio/js 5.0.0-dev.5634.e1468ca → 5.0.0-dev.5636.99a32e6

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.
@@ -987,12 +987,7 @@ class WebformBuilder extends Component_1.default {
987
987
  parent.formioComponent.removeChildComponent(component);
988
988
  }
989
989
  if (component.input && componentInstance && componentInstance.parent) {
990
- if (Array.isArray(parent.formioComponent.component.defaultValue)) {
991
- parent.formioComponent.component.defaultValue.forEach(v => lodash_1.default.unset(v, componentInstance.key));
992
- }
993
- else if (typeof parent.formioComponent.component.defaultValue === 'object') {
994
- lodash_1.default.unset(parent.formioComponent.component.defaultValue, componentInstance.key);
995
- }
990
+ lodash_1.default.unset(componentInstance._data, componentInstance.key);
996
991
  }
997
992
  const rebuild = parent.formioComponent.rebuild() || Promise.resolve();
998
993
  rebuild.then(() => {
@@ -971,12 +971,7 @@ export default class WebformBuilder extends Component {
971
971
  parent.formioComponent.removeChildComponent(component);
972
972
  }
973
973
  if (component.input && componentInstance && componentInstance.parent) {
974
- if (Array.isArray(parent.formioComponent.component.defaultValue)) {
975
- parent.formioComponent.component.defaultValue.forEach(v => _.unset(v, componentInstance.key));
976
- }
977
- else if (typeof parent.formioComponent.component.defaultValue === 'object') {
978
- _.unset(parent.formioComponent.component.defaultValue, componentInstance.key);
979
- }
974
+ _.unset(componentInstance._data, componentInstance.key);
980
975
  }
981
976
  const rebuild = parent.formioComponent.rebuild() || Promise.resolve();
982
977
  rebuild.then(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5634.e1468ca",
3
+ "version": "5.0.0-dev.5636.99a32e6",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {