@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exmg/exm-form",
3
- "version": "1.0.4",
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": "8504f0aac4737b66d3eb579953c45b56a110cb91"
46
+ "gitHead": "ef887aabf2d9e8e0572e850f3db7c80a697f0edf"
47
47
  }
@@ -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 !== 'function')
133
- continue;
134
- // @ts-ignore
135
- const isValid = el.checkValidity();
133
+ if (typeof el.reportValidity === 'function') {
134
+ // @ts-ignore
135
+ isValid = el.checkValidity();
136
+ }
136
137
  if (!isValid) {
137
138
  allValid = false;
138
139
  }