@exmg/exm-form 1.0.4 → 1.0.5
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/package.json +2 -2
- package/src/exm-form-base.js +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-form",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "ef887aabf2d9e8e0572e850f3db7c80a697f0edf"
|
|
47
47
|
}
|
package/src/exm-form-base.js
CHANGED
|
@@ -128,11 +128,12 @@ export class ExmFormBase extends ExmgElement {
|
|
|
128
128
|
const formElements = form === null || form === void 0 ? void 0 : form.elements;
|
|
129
129
|
let allValid = true;
|
|
130
130
|
for (const el of formElements || []) {
|
|
131
|
+
let isValid = true;
|
|
131
132
|
// @ts-ignore
|
|
132
|
-
if (typeof el.reportValidity
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
if (typeof el.reportValidity === 'function') {
|
|
134
|
+
// @ts-ignore
|
|
135
|
+
isValid = el.checkValidity();
|
|
136
|
+
}
|
|
136
137
|
if (!isValid) {
|
|
137
138
|
allValid = false;
|
|
138
139
|
}
|