@vaadin/date-picker 22.0.3 → 22.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": "@vaadin/date-picker",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"@polymer/iron-a11y-announcer": "^3.0.0",
|
|
36
36
|
"@polymer/iron-media-query": "^3.0.0",
|
|
37
37
|
"@polymer/polymer": "^3.2.0",
|
|
38
|
-
"@vaadin/button": "^22.0.
|
|
39
|
-
"@vaadin/component-base": "^22.0.
|
|
40
|
-
"@vaadin/field-base": "^22.0.
|
|
41
|
-
"@vaadin/input-container": "^22.0.
|
|
42
|
-
"@vaadin/vaadin-lumo-styles": "^22.0.
|
|
43
|
-
"@vaadin/vaadin-material-styles": "^22.0.
|
|
44
|
-
"@vaadin/vaadin-overlay": "^22.0.
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "^22.0.
|
|
38
|
+
"@vaadin/button": "^22.0.6",
|
|
39
|
+
"@vaadin/component-base": "^22.0.6",
|
|
40
|
+
"@vaadin/field-base": "^22.0.6",
|
|
41
|
+
"@vaadin/input-container": "^22.0.6",
|
|
42
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.6",
|
|
43
|
+
"@vaadin/vaadin-material-styles": "^22.0.6",
|
|
44
|
+
"@vaadin/vaadin-overlay": "^22.0.6",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "^22.0.6"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@esm-bundle/chai": "^4.3.4",
|
|
49
|
-
"@vaadin/dialog": "^22.0.
|
|
50
|
-
"@vaadin/polymer-legacy-adapter": "^22.0.
|
|
49
|
+
"@vaadin/dialog": "^22.0.6",
|
|
50
|
+
"@vaadin/polymer-legacy-adapter": "^22.0.6",
|
|
51
51
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
52
52
|
"sinon": "^9.2.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "18c55872d764e338e0f98e65826cbe895156251a"
|
|
55
55
|
}
|
|
@@ -577,6 +577,7 @@ export const DatePickerMixin = (subclass) =>
|
|
|
577
577
|
_inputElementChanged(input) {
|
|
578
578
|
super._inputElementChanged(input);
|
|
579
579
|
if (input) {
|
|
580
|
+
input.autocomplete = 'off';
|
|
580
581
|
input.setAttribute('role', 'combobox');
|
|
581
582
|
input.setAttribute('aria-expanded', !!this.opened);
|
|
582
583
|
this._applyInputValue(this._selectedDate);
|
|
@@ -146,8 +146,8 @@ class DatePicker extends DatePickerMixin(
|
|
|
146
146
|
>
|
|
147
147
|
<slot name="prefix" slot="prefix"></slot>
|
|
148
148
|
<slot name="input"></slot>
|
|
149
|
-
<div id="clearButton" part="clear-button" slot="suffix"></div>
|
|
150
|
-
<div part="toggle-button" slot="suffix" on-tap="_toggle" role="button"></div>
|
|
149
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
150
|
+
<div part="toggle-button" slot="suffix" on-tap="_toggle" role="button" aria-hidden="true"></div>
|
|
151
151
|
</vaadin-input-container>
|
|
152
152
|
|
|
153
153
|
<div part="helper-text">
|
|
@@ -214,6 +214,9 @@ class DatePicker extends DatePickerMixin(
|
|
|
214
214
|
})
|
|
215
215
|
);
|
|
216
216
|
this.addController(new LabelledInputController(this.inputElement, this._labelController));
|
|
217
|
+
|
|
218
|
+
const toggleButton = this.shadowRoot.querySelector('[part="toggle-button"]');
|
|
219
|
+
toggleButton.addEventListener('mousedown', (e) => e.preventDefault());
|
|
217
220
|
}
|
|
218
221
|
|
|
219
222
|
/** @private */
|