@formio/js 5.1.0-dev.5981.6282823 → 5.1.0-dev.5983.aa8260f

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/lib/cjs/Wizard.js CHANGED
@@ -667,7 +667,7 @@ class Wizard extends Webform_1.default {
667
667
  return this.page - 1;
668
668
  }
669
669
  beforeSubmit() {
670
- const pages = this.getPages({ all: true });
670
+ const pages = this.getPages();
671
671
  return Promise.all(pages.map((page) => {
672
672
  page.options.beforeSubmit = true;
673
673
  return page.beforeSubmit();
@@ -218,7 +218,7 @@ class AddressComponent extends Container_1.default {
218
218
  super.dataValue = value;
219
219
  }
220
220
  get dataValue() {
221
- const resultValue = lodash_1.default.get(this._data, this.component.path);
221
+ const resultValue = lodash_1.default.get(this._data, this.path);
222
222
  if (!lodash_1.default.isArray(resultValue) && this.component.multiple) {
223
223
  return [resultValue];
224
224
  }
@@ -587,21 +587,11 @@ class FormComponent extends Component_1.default {
587
587
  this.dataValue = submission;
588
588
  return Promise.resolve(this.dataValue);
589
589
  }
590
- if (this.isSubFormLazyLoad() && !this.subFormLoading) {
591
- return this.createSubForm(true)
592
- .then(this.submitSubForm(false))
593
- .then(() => {
594
- return this.dataValue;
595
- })
596
- .then(() => super.beforeSubmit());
597
- }
598
- else {
599
- return this.submitSubForm(false)
600
- .then(() => {
601
- return this.dataValue;
602
- })
603
- .then(() => super.beforeSubmit());
604
- }
590
+ return this.submitSubForm(false)
591
+ .then(() => {
592
+ return this.dataValue;
593
+ })
594
+ .then(() => super.beforeSubmit());
605
595
  }
606
596
  isSubFormLazyLoad() {
607
597
  var _a, _b;
package/lib/mjs/Wizard.js CHANGED
@@ -657,7 +657,7 @@ export default class Wizard extends Webform {
657
657
  return this.page - 1;
658
658
  }
659
659
  beforeSubmit() {
660
- const pages = this.getPages({ all: true });
660
+ const pages = this.getPages();
661
661
  return Promise.all(pages.map((page) => {
662
662
  page.options.beforeSubmit = true;
663
663
  return page.beforeSubmit();
@@ -214,7 +214,7 @@ export default class AddressComponent extends ContainerComponent {
214
214
  super.dataValue = value;
215
215
  }
216
216
  get dataValue() {
217
- const resultValue = _.get(this._data, this.component.path);
217
+ const resultValue = _.get(this._data, this.path);
218
218
  if (!_.isArray(resultValue) && this.component.multiple) {
219
219
  return [resultValue];
220
220
  }
@@ -580,21 +580,11 @@ export default class FormComponent extends Component {
580
580
  this.dataValue = submission;
581
581
  return Promise.resolve(this.dataValue);
582
582
  }
583
- if (this.isSubFormLazyLoad() && !this.subFormLoading) {
584
- return this.createSubForm(true)
585
- .then(this.submitSubForm(false))
586
- .then(() => {
587
- return this.dataValue;
588
- })
589
- .then(() => super.beforeSubmit());
590
- }
591
- else {
592
- return this.submitSubForm(false)
593
- .then(() => {
594
- return this.dataValue;
595
- })
596
- .then(() => super.beforeSubmit());
597
- }
583
+ return this.submitSubForm(false)
584
+ .then(() => {
585
+ return this.dataValue;
586
+ })
587
+ .then(() => super.beforeSubmit());
598
588
  }
599
589
  isSubFormLazyLoad() {
600
590
  return this.root?._form?.display === 'wizard' && this.component.lazyLoad;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.1.0-dev.5981.6282823",
3
+ "version": "5.1.0-dev.5983.aa8260f",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {