@vaadin/select 22.0.17 → 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.17",
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.17",
38
- "@vaadin/component-base": "^22.0.17",
39
- "@vaadin/field-base": "^22.0.17",
40
- "@vaadin/input-container": "^22.0.17",
41
- "@vaadin/item": "^22.0.17",
42
- "@vaadin/list-box": "^22.0.17",
43
- "@vaadin/vaadin-list-mixin": "^22.0.17",
44
- "@vaadin/vaadin-lumo-styles": "^22.0.17",
45
- "@vaadin/vaadin-material-styles": "^22.0.17",
46
- "@vaadin/vaadin-overlay": "^22.0.17",
47
- "@vaadin/vaadin-themable-mixin": "^22.0.17"
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.17",
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": "4ba77c19889036fb954052cf1f32bc96089fcc25"
56
+ "gitHead": "8f5d45192adbb084661af01c8837d0898cd68a23"
57
57
  }
@@ -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">
@@ -429,6 +429,13 @@ class Select extends DelegateFocusMixin(FieldMixin(SlotMixin(ElementMixin(Themab
429
429
  this.opened = !this.readonly;
430
430
  }
431
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
+
432
439
  /**
433
440
  * @param {!KeyboardEvent} e
434
441
  * @protected