@exmg/exm-form-drawer 1.0.6 → 1.0.8

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-drawer",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
- "@exmg/exm-button": "^1.0.2",
34
- "@exmg/exm-form": "^1.0.3",
33
+ "@exmg/exm-button": "^1.0.3",
34
+ "@exmg/exm-form": "^1.0.5",
35
35
  "@material/typography": "^14.0.0",
36
36
  "@polymer/neon-animation": "^3.0.1",
37
37
  "@polymer/paper-dialog": "^3.0.1",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "54106123d49d47301d1304a66eef6c33558f07e4"
50
+ "gitHead": "ef887aabf2d9e8e0572e850f3db7c80a697f0edf"
51
51
  }
@@ -97,8 +97,12 @@ export class ExmFormDrawerBase extends ExmgElement {
97
97
  const formElements = form === null || form === void 0 ? void 0 : form.elements;
98
98
  let allValid = true;
99
99
  for (const el of formElements || []) {
100
+ let isValid = true;
100
101
  // @ts-ignore
101
- const isValid = typeof el.reportValidity === 'function' && el.checkValidity();
102
+ if (typeof el.reportValidity === 'function') {
103
+ // @ts-ignore
104
+ isValid = el.checkValidity();
105
+ }
102
106
  if (!isValid) {
103
107
  allValid = false;
104
108
  }