@formio/js 5.0.0-dev.5883.805c58d → 5.0.0-dev.5885.a79f03e
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 +3 -3
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +3 -3
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/Wizard.js +1 -1
- package/lib/cjs/components/_classes/nested/NestedComponent.js +3 -0
- package/lib/cjs/components/form/Form.js +1 -1
- package/lib/mjs/Wizard.js +1 -1
- package/lib/mjs/components/_classes/nested/NestedComponent.js +3 -0
- package/lib/mjs/components/form/Form.js +1 -1
- package/package.json +1 -1
package/lib/cjs/Wizard.js
CHANGED
|
@@ -716,7 +716,7 @@ class Wizard extends Webform_1.default {
|
|
|
716
716
|
else {
|
|
717
717
|
this.currentPage.components.forEach((comp) => comp.setPristine(false));
|
|
718
718
|
this.scrollIntoView(this.element, true);
|
|
719
|
-
return Promise.reject(
|
|
719
|
+
return Promise.reject(super.showErrors(errors, true));
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
validateCurrentPage(flags = {}) {
|
|
@@ -693,6 +693,9 @@ class NestedComponent extends Field_1.default {
|
|
|
693
693
|
if (!instance) {
|
|
694
694
|
return;
|
|
695
695
|
}
|
|
696
|
+
if (!instance.component.path) {
|
|
697
|
+
instance.component.path = component.path;
|
|
698
|
+
}
|
|
696
699
|
instance.checkComponentValidity(data, dirty, row, flags, scope.errors);
|
|
697
700
|
if (instance.processOwnValidation) {
|
|
698
701
|
scope.noRecurse = true;
|
|
@@ -476,7 +476,7 @@ class FormComponent extends Component_1.default {
|
|
|
476
476
|
checkComponentValidity(data, dirty, row, options, errors = []) {
|
|
477
477
|
options = options || {};
|
|
478
478
|
const silentCheck = options.silentCheck || false;
|
|
479
|
-
if (this.subForm) {
|
|
479
|
+
if (this.subForm && !this.isNestedWizard) {
|
|
480
480
|
return this.subForm.checkValidity(this.subFormData, dirty, null, silentCheck, errors);
|
|
481
481
|
}
|
|
482
482
|
return super.checkComponentValidity(data, dirty, row, options, errors);
|
package/lib/mjs/Wizard.js
CHANGED
|
@@ -706,7 +706,7 @@ export default class Wizard extends Webform {
|
|
|
706
706
|
else {
|
|
707
707
|
this.currentPage.components.forEach((comp) => comp.setPristine(false));
|
|
708
708
|
this.scrollIntoView(this.element, true);
|
|
709
|
-
return Promise.reject(
|
|
709
|
+
return Promise.reject(super.showErrors(errors, true));
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
validateCurrentPage(flags = {}) {
|
|
@@ -688,6 +688,9 @@ export default class NestedComponent extends Field {
|
|
|
688
688
|
if (!instance) {
|
|
689
689
|
return;
|
|
690
690
|
}
|
|
691
|
+
if (!instance.component.path) {
|
|
692
|
+
instance.component.path = component.path;
|
|
693
|
+
}
|
|
691
694
|
instance.checkComponentValidity(data, dirty, row, flags, scope.errors);
|
|
692
695
|
if (instance.processOwnValidation) {
|
|
693
696
|
scope.noRecurse = true;
|
|
@@ -470,7 +470,7 @@ export default class FormComponent extends Component {
|
|
|
470
470
|
checkComponentValidity(data, dirty, row, options, errors = []) {
|
|
471
471
|
options = options || {};
|
|
472
472
|
const silentCheck = options.silentCheck || false;
|
|
473
|
-
if (this.subForm) {
|
|
473
|
+
if (this.subForm && !this.isNestedWizard) {
|
|
474
474
|
return this.subForm.checkValidity(this.subFormData, dirty, null, silentCheck, errors);
|
|
475
475
|
}
|
|
476
476
|
return super.checkComponentValidity(data, dirty, row, options, errors);
|