@formio/js 5.1.0-dev.5978.4a62b82 → 5.1.0-dev.5979.933c0c9
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/dist/formio.js +1 -1
- package/dist/formio.min.js +1 -1
- package/lib/cjs/Webform.js +1 -1
- package/lib/cjs/providers/address/GoogleAddressProvider.js +1 -1
- package/lib/mjs/Webform.js +1 -1
- package/lib/mjs/providers/address/GoogleAddressProvider.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) {
|
1534
1534
|
return;
|
1535
1535
|
}
|
1536
1536
|
const captchaComponent = [];
|
@@ -198,7 +198,7 @@ class GoogleAddressProvider extends AddressProvider_1.AddressProvider {
|
|
198
198
|
if (!Formio_1.Formio.libraries[this.getLibraryName()]) {
|
199
199
|
return;
|
200
200
|
}
|
201
|
-
const existingScript = document.querySelector(`script[src^="${GOOGLE_MAPS_JS_URL}"]`);
|
201
|
+
const existingScript = document === null || document === void 0 ? void 0 : document.querySelector(`script[src^="${GOOGLE_MAPS_JS_URL}"]`);
|
202
202
|
if (existingScript && ((_a = options.params) === null || _a === void 0 ? void 0 : _a.key) && !existingScript.attributes.src.value.endsWith(options.params.key)) {
|
203
203
|
const googleMapsScripts = (_b = document.querySelectorAll(`script[src^="${GOOGLE_MAPS_BASE_URL}"]`)) !== null && _b !== void 0 ? _b : [];
|
204
204
|
googleMapsScripts.forEach(script => script.parentNode.removeChild(script));
|
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) {
|
1534
1534
|
return;
|
1535
1535
|
}
|
1536
1536
|
const captchaComponent = [];
|
@@ -190,7 +190,7 @@ export class GoogleAddressProvider extends AddressProvider {
|
|
190
190
|
if (!Formio.libraries[this.getLibraryName()]) {
|
191
191
|
return;
|
192
192
|
}
|
193
|
-
const existingScript = document
|
193
|
+
const existingScript = document?.querySelector(`script[src^="${GOOGLE_MAPS_JS_URL}"]`);
|
194
194
|
if (existingScript && options.params?.key && !existingScript.attributes.src.value.endsWith(options.params.key)) {
|
195
195
|
const googleMapsScripts = document.querySelectorAll(`script[src^="${GOOGLE_MAPS_BASE_URL}"]`) ?? [];
|
196
196
|
googleMapsScripts.forEach(script => script.parentNode.removeChild(script));
|