@vaadin/field-base 24.6.0 → 24.6.2
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": "@vaadin/field-base",
|
|
3
|
-
"version": "24.6.
|
|
3
|
+
"version": "24.6.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
34
34
|
"@polymer/polymer": "^3.0.0",
|
|
35
|
-
"@vaadin/a11y-base": "~24.6.
|
|
36
|
-
"@vaadin/component-base": "~24.6.
|
|
35
|
+
"@vaadin/a11y-base": "~24.6.2",
|
|
36
|
+
"@vaadin/component-base": "~24.6.2",
|
|
37
37
|
"lit": "^3.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@vaadin/chai-plugins": "~24.6.
|
|
41
|
-
"@vaadin/testing-helpers": "^1.
|
|
40
|
+
"@vaadin/chai-plugins": "~24.6.2",
|
|
41
|
+
"@vaadin/testing-helpers": "^1.1.0",
|
|
42
42
|
"sinon": "^18.0.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "ee2ea01a17d888403adb141515a0a3cef82b8b65"
|
|
45
45
|
}
|
|
@@ -89,7 +89,7 @@ export const ClearButtonMixin = (superclass) =>
|
|
|
89
89
|
_onEscape(event) {
|
|
90
90
|
super._onEscape(event);
|
|
91
91
|
|
|
92
|
-
if (this.clearButtonVisible && !!this.value) {
|
|
92
|
+
if (this.clearButtonVisible && !!this.value && !this.readonly) {
|
|
93
93
|
event.stopPropagation();
|
|
94
94
|
this._onClearAction();
|
|
95
95
|
}
|
package/src/error-controller.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
+
import { announce } from '@vaadin/a11y-base/src/announce.js';
|
|
6
7
|
import { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -108,12 +109,10 @@ export class ErrorController extends SlotChildObserveController {
|
|
|
108
109
|
errorNode.textContent = hasError ? errorMessage : '';
|
|
109
110
|
errorNode.hidden = !hasError;
|
|
110
111
|
|
|
111
|
-
// Role alert will make the error message announce immediately
|
|
112
|
-
// as the field becomes invalid
|
|
113
112
|
if (hasError) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
// Assertive mode ensures VoiceOver reads
|
|
114
|
+
// the error message on commit with Enter.
|
|
115
|
+
announce(errorMessage, { mode: 'assertive' });
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
|