@formio/js 5.1.0-dev.5977.69f20ee → 5.1.0-dev.5978.172f897
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 +10 -2
- package/lib/cjs/components/address/Address.js +1 -1
- package/lib/mjs/Webform.js +10 -2
- package/lib/mjs/components/address/Address.js +1 -1
- package/package.json +1 -1
package/lib/cjs/Webform.js
CHANGED
@@ -1530,7 +1530,7 @@ class Webform extends NestedDataComponent_1.default {
|
|
1530
1530
|
}
|
1531
1531
|
}
|
1532
1532
|
triggerCaptcha() {
|
1533
|
-
if (!this || !this.components) {
|
1533
|
+
if (!this || !this.components || this.options.preview) {
|
1534
1534
|
return;
|
1535
1535
|
}
|
1536
1536
|
const captchaComponent = [];
|
@@ -1540,7 +1540,15 @@ class Webform extends NestedDataComponent_1.default {
|
|
1540
1540
|
}
|
1541
1541
|
});
|
1542
1542
|
if (captchaComponent.length > 0) {
|
1543
|
-
|
1543
|
+
if (this.parent) {
|
1544
|
+
this.parent.subFormReady.then(() => {
|
1545
|
+
captchaComponent[0].verify(`${this.form.name ? this.form.name : 'form'}Load`);
|
1546
|
+
});
|
1547
|
+
}
|
1548
|
+
else {
|
1549
|
+
captchaComponent[0].verify(`${this.form.name ? this.form.name : 'form'}Load`);
|
1550
|
+
}
|
1551
|
+
;
|
1544
1552
|
}
|
1545
1553
|
}
|
1546
1554
|
set nosubmit(value) {
|
@@ -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.
|
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
|
}
|
package/lib/mjs/Webform.js
CHANGED
@@ -1530,7 +1530,7 @@ export default class Webform extends NestedDataComponent {
|
|
1530
1530
|
}
|
1531
1531
|
}
|
1532
1532
|
triggerCaptcha() {
|
1533
|
-
if (!this || !this.components) {
|
1533
|
+
if (!this || !this.components || this.options.preview) {
|
1534
1534
|
return;
|
1535
1535
|
}
|
1536
1536
|
const captchaComponent = [];
|
@@ -1540,7 +1540,15 @@ export default class Webform extends NestedDataComponent {
|
|
1540
1540
|
}
|
1541
1541
|
});
|
1542
1542
|
if (captchaComponent.length > 0) {
|
1543
|
-
|
1543
|
+
if (this.parent) {
|
1544
|
+
this.parent.subFormReady.then(() => {
|
1545
|
+
captchaComponent[0].verify(`${this.form.name ? this.form.name : 'form'}Load`);
|
1546
|
+
});
|
1547
|
+
}
|
1548
|
+
else {
|
1549
|
+
captchaComponent[0].verify(`${this.form.name ? this.form.name : 'form'}Load`);
|
1550
|
+
}
|
1551
|
+
;
|
1544
1552
|
}
|
1545
1553
|
}
|
1546
1554
|
set nosubmit(value) {
|
@@ -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.
|
217
|
+
const resultValue = _.get(this._data, this.path);
|
218
218
|
if (!_.isArray(resultValue) && this.component.multiple) {
|
219
219
|
return [resultValue];
|
220
220
|
}
|