@exmg/exm-form-drawer 1.0.4 → 1.0.6
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.
|
|
3
|
+
"version": "1.0.6",
|
|
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.
|
|
34
|
-
"@exmg/exm-form": "^1.0.
|
|
33
|
+
"@exmg/exm-button": "^1.0.2",
|
|
34
|
+
"@exmg/exm-form": "^1.0.3",
|
|
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": "
|
|
50
|
+
"gitHead": "54106123d49d47301d1304a66eef6c33558f07e4"
|
|
51
51
|
}
|
|
@@ -93,7 +93,6 @@ export class ExmFormDrawerBase extends ExmgElement {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
async _checkFormValidity() {
|
|
96
|
-
await this.updateComplete;
|
|
97
96
|
const form = this.getForm();
|
|
98
97
|
const formElements = form === null || form === void 0 ? void 0 : form.elements;
|
|
99
98
|
let allValid = true;
|
|
@@ -114,6 +113,8 @@ export class ExmFormDrawerBase extends ExmgElement {
|
|
|
114
113
|
async handleSubmit() {
|
|
115
114
|
const form = this.getForm();
|
|
116
115
|
this.errorMessage = null;
|
|
116
|
+
// Check form validity
|
|
117
|
+
this._checkFormValidity();
|
|
117
118
|
// Return when there are invalid fields
|
|
118
119
|
if (!this.formValid) {
|
|
119
120
|
return;
|