@formio/js 5.0.0-dev.5873.124778a → 5.0.0-dev.5875.f359435
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 +2 -2
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +2 -2
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/Webform.js +1 -1
- package/lib/cjs/Wizard.js +1 -1
- package/lib/mjs/Webform.js +2 -2
- package/lib/mjs/Wizard.js +1 -1
- package/package.json +1 -1
package/lib/cjs/Webform.js
CHANGED
|
@@ -1533,7 +1533,7 @@ class Webform extends NestedDataComponent_1.default {
|
|
|
1533
1533
|
return;
|
|
1534
1534
|
}
|
|
1535
1535
|
const captchaComponent = [];
|
|
1536
|
-
(0, formUtils_1.
|
|
1536
|
+
(0, formUtils_1.eachComponentData)(this.components, {}, (component) => {
|
|
1537
1537
|
if (/^(re)?captcha$/.test(component.type) && component.component.eventType === 'formLoad') {
|
|
1538
1538
|
captchaComponent.push(component);
|
|
1539
1539
|
}
|
package/lib/cjs/Wizard.js
CHANGED
|
@@ -916,7 +916,7 @@ class Wizard extends Webform_1.default {
|
|
|
916
916
|
const components = !currentPageOnly || this.isLastPage()
|
|
917
917
|
? this.getComponents()
|
|
918
918
|
: this.currentPage.components;
|
|
919
|
-
return components.reduce((check, comp) => comp.checkValidity(data, dirty, row,
|
|
919
|
+
return components.reduce((check, comp) => comp.checkValidity(data, dirty, row, childErrors) && check, true);
|
|
920
920
|
}
|
|
921
921
|
get errors() {
|
|
922
922
|
if (!this.isLastPage()) {
|
package/lib/mjs/Webform.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Formio } from "./Formio";
|
|
|
7
7
|
import Components from "./components/Components";
|
|
8
8
|
import NestedDataComponent from "./components/_classes/nesteddata/NestedDataComponent";
|
|
9
9
|
import { fastCloneDeep, currentTimezone, unescapeHTML, getStringFromComponentPath, convertStringToHTMLElement, getArrayFromComponentPath, } from "./utils/utils";
|
|
10
|
-
import { eachComponent } from "./utils/formUtils";
|
|
10
|
+
import { eachComponent, eachComponentData } from "./utils/formUtils";
|
|
11
11
|
// We need this here because dragula pulls in CustomEvent class that requires global to exist.
|
|
12
12
|
if (typeof window !== 'undefined' && typeof window.global === 'undefined') {
|
|
13
13
|
window.global = window;
|
|
@@ -1536,7 +1536,7 @@ export default class Webform extends NestedDataComponent {
|
|
|
1536
1536
|
return;
|
|
1537
1537
|
}
|
|
1538
1538
|
const captchaComponent = [];
|
|
1539
|
-
|
|
1539
|
+
eachComponentData(this.components, {}, (component) => {
|
|
1540
1540
|
if (/^(re)?captcha$/.test(component.type) && component.component.eventType === 'formLoad') {
|
|
1541
1541
|
captchaComponent.push(component);
|
|
1542
1542
|
}
|
package/lib/mjs/Wizard.js
CHANGED
|
@@ -903,7 +903,7 @@ export default class Wizard extends Webform {
|
|
|
903
903
|
const components = !currentPageOnly || this.isLastPage()
|
|
904
904
|
? this.getComponents()
|
|
905
905
|
: this.currentPage.components;
|
|
906
|
-
return components.reduce((check, comp) => comp.checkValidity(data, dirty, row,
|
|
906
|
+
return components.reduce((check, comp) => comp.checkValidity(data, dirty, row, childErrors) && check, true);
|
|
907
907
|
}
|
|
908
908
|
get errors() {
|
|
909
909
|
if (!this.isLastPage()) {
|