@rxdi/forms 0.7.209 → 0.7.210
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/form.group.js +2 -0
- package/package.json +2 -2
package/dist/form.group.js
CHANGED
|
@@ -213,6 +213,7 @@ class FormGroup {
|
|
|
213
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
214
214
|
let errors = [];
|
|
215
215
|
element.setCustomValidity('');
|
|
216
|
+
this.setFormValidity(true);
|
|
216
217
|
if (!element.checkValidity()) {
|
|
217
218
|
return {
|
|
218
219
|
errors: errors.concat(Object.keys(form_tokens_1.InputValidityState)
|
|
@@ -270,6 +271,7 @@ class FormGroup {
|
|
|
270
271
|
setFormValidity(validity = true) {
|
|
271
272
|
this.valid = validity;
|
|
272
273
|
this.invalid = !validity;
|
|
274
|
+
this.getParentElement().requestUpdate();
|
|
273
275
|
}
|
|
274
276
|
resetErrors() {
|
|
275
277
|
this.errors = Object.keys(this.errors).reduce((object, key) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdi/forms",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.210",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"author": "Kristiyan Tachev",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build": "tsc"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@rxdi/lit-html": "^0.7.
|
|
15
|
+
"@rxdi/lit-html": "^0.7.209",
|
|
16
16
|
"@types/node": "^25.0.3",
|
|
17
17
|
"rxjs": "^7.8.2",
|
|
18
18
|
"typescript": "^5.9.3"
|