@vaadin/field-base 22.0.0 → 22.0.1
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 +3 -3
- package/src/field-mixin.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/field-base",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
33
33
|
"@polymer/polymer": "^3.0.0",
|
|
34
|
-
"@vaadin/component-base": "^22.0.
|
|
34
|
+
"@vaadin/component-base": "^22.0.1",
|
|
35
35
|
"lit": "^2.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
40
40
|
"sinon": "^9.2.1"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "2b0a2bff0369d6020f7cc33ad35506aa2d1f6f68"
|
|
43
43
|
}
|
package/src/field-mixin.js
CHANGED
|
@@ -301,6 +301,7 @@ export const FieldMixin = (superclass) =>
|
|
|
301
301
|
}
|
|
302
302
|
const hasError = Boolean(invalid && errorMessage);
|
|
303
303
|
error.textContent = hasError ? errorMessage : '';
|
|
304
|
+
error.hidden = !hasError;
|
|
304
305
|
this.toggleAttribute('has-error-message', hasError);
|
|
305
306
|
|
|
306
307
|
// Role alert will make the error message announce immediately
|