@vaadin/select 22.0.15 → 22.0.18
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/select",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.18",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@polymer/iron-media-query": "^3.0.0",
|
|
36
36
|
"@polymer/polymer": "^3.2.0",
|
|
37
|
-
"@vaadin/button": "^22.0.
|
|
38
|
-
"@vaadin/component-base": "^22.0.
|
|
39
|
-
"@vaadin/field-base": "^22.0.
|
|
40
|
-
"@vaadin/input-container": "^22.0.
|
|
41
|
-
"@vaadin/item": "^22.0.
|
|
42
|
-
"@vaadin/list-box": "^22.0.
|
|
43
|
-
"@vaadin/vaadin-list-mixin": "^22.0.
|
|
44
|
-
"@vaadin/vaadin-lumo-styles": "^22.0.
|
|
45
|
-
"@vaadin/vaadin-material-styles": "^22.0.
|
|
46
|
-
"@vaadin/vaadin-overlay": "^22.0.
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "^22.0.
|
|
37
|
+
"@vaadin/button": "^22.0.18",
|
|
38
|
+
"@vaadin/component-base": "^22.0.18",
|
|
39
|
+
"@vaadin/field-base": "^22.0.18",
|
|
40
|
+
"@vaadin/input-container": "^22.0.18",
|
|
41
|
+
"@vaadin/item": "^22.0.18",
|
|
42
|
+
"@vaadin/list-box": "^22.0.18",
|
|
43
|
+
"@vaadin/vaadin-list-mixin": "^22.0.18",
|
|
44
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.18",
|
|
45
|
+
"@vaadin/vaadin-material-styles": "^22.0.18",
|
|
46
|
+
"@vaadin/vaadin-overlay": "^22.0.18",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "^22.0.18"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@esm-bundle/chai": "^4.3.4",
|
|
51
|
-
"@vaadin/polymer-legacy-adapter": "^22.0.
|
|
51
|
+
"@vaadin/polymer-legacy-adapter": "^22.0.18",
|
|
52
52
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
53
53
|
"lit": "^2.0.0",
|
|
54
54
|
"sinon": "^9.2.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "8f5d45192adbb084661af01c8837d0898cd68a23"
|
|
57
57
|
}
|
package/src/vaadin-select.js
CHANGED
|
@@ -143,7 +143,7 @@ class Select extends DelegateFocusMixin(FieldMixin(SlotMixin(ElementMixin(Themab
|
|
|
143
143
|
>
|
|
144
144
|
<slot name="prefix" slot="prefix"></slot>
|
|
145
145
|
<slot name="value"></slot>
|
|
146
|
-
<div part="toggle-button" slot="suffix" aria-hidden="true"></div>
|
|
146
|
+
<div part="toggle-button" slot="suffix" aria-hidden="true" on-mousedown="_onToggleMouseDown"></div>
|
|
147
147
|
</vaadin-input-container>
|
|
148
148
|
|
|
149
149
|
<div part="helper-text">
|
|
@@ -421,10 +421,21 @@ class Select extends DelegateFocusMixin(FieldMixin(SlotMixin(ElementMixin(Themab
|
|
|
421
421
|
*
|
|
422
422
|
* @private
|
|
423
423
|
*/
|
|
424
|
-
_onClick() {
|
|
424
|
+
_onClick(event) {
|
|
425
|
+
// Prevent parent components such as `vaadin-grid`
|
|
426
|
+
// from handling the click event after it bubbles.
|
|
427
|
+
event.preventDefault();
|
|
428
|
+
|
|
425
429
|
this.opened = !this.readonly;
|
|
426
430
|
}
|
|
427
431
|
|
|
432
|
+
/** @private */
|
|
433
|
+
_onToggleMouseDown(event) {
|
|
434
|
+
// Prevent mousedown event to avoid blur and preserve focused state
|
|
435
|
+
// while opening, and to restore focus-ring attribute on closing.
|
|
436
|
+
event.preventDefault();
|
|
437
|
+
}
|
|
438
|
+
|
|
428
439
|
/**
|
|
429
440
|
* @param {!KeyboardEvent} e
|
|
430
441
|
* @protected
|
|
@@ -7,5 +7,6 @@ import '@vaadin/button/theme/lumo/vaadin-button.js';
|
|
|
7
7
|
import '@vaadin/input-container/theme/lumo/vaadin-input-container.js';
|
|
8
8
|
import '@vaadin/item/theme/lumo/vaadin-item.js';
|
|
9
9
|
import '@vaadin/list-box/theme/lumo/vaadin-list-box.js';
|
|
10
|
+
import '@vaadin/vaadin-overlay/theme/lumo/vaadin-overlay.js';
|
|
10
11
|
import './vaadin-select-styles.js';
|
|
11
12
|
import '../../src/vaadin-select.js';
|
|
@@ -7,5 +7,6 @@ import '@vaadin/button/theme/material/vaadin-button.js';
|
|
|
7
7
|
import '@vaadin/input-container/theme/material/vaadin-input-container.js';
|
|
8
8
|
import '@vaadin/item/theme/material/vaadin-item.js';
|
|
9
9
|
import '@vaadin/list-box/theme/material/vaadin-list-box.js';
|
|
10
|
+
import '@vaadin/vaadin-overlay/theme/material/vaadin-overlay.js';
|
|
10
11
|
import './vaadin-select-styles.js';
|
|
11
12
|
import '../../src/vaadin-select.js';
|