@vaadin/select 23.0.12 → 23.0.13

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": "23.0.12",
3
+ "version": "23.0.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,24 +34,24 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@polymer/polymer": "^3.2.0",
37
- "@vaadin/button": "^23.0.12",
38
- "@vaadin/component-base": "^23.0.12",
39
- "@vaadin/field-base": "^23.0.12",
40
- "@vaadin/input-container": "^23.0.12",
41
- "@vaadin/item": "^23.0.12",
42
- "@vaadin/list-box": "^23.0.12",
43
- "@vaadin/vaadin-list-mixin": "^23.0.12",
44
- "@vaadin/vaadin-lumo-styles": "^23.0.12",
45
- "@vaadin/vaadin-material-styles": "^23.0.12",
46
- "@vaadin/vaadin-overlay": "^23.0.12",
47
- "@vaadin/vaadin-themable-mixin": "^23.0.12"
37
+ "@vaadin/button": "^23.0.13",
38
+ "@vaadin/component-base": "^23.0.13",
39
+ "@vaadin/field-base": "^23.0.13",
40
+ "@vaadin/input-container": "^23.0.13",
41
+ "@vaadin/item": "^23.0.13",
42
+ "@vaadin/list-box": "^23.0.13",
43
+ "@vaadin/vaadin-list-mixin": "^23.0.13",
44
+ "@vaadin/vaadin-lumo-styles": "^23.0.13",
45
+ "@vaadin/vaadin-material-styles": "^23.0.13",
46
+ "@vaadin/vaadin-overlay": "^23.0.13",
47
+ "@vaadin/vaadin-themable-mixin": "^23.0.13"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@esm-bundle/chai": "^4.3.4",
51
- "@vaadin/polymer-legacy-adapter": "^23.0.12",
51
+ "@vaadin/polymer-legacy-adapter": "^23.0.13",
52
52
  "@vaadin/testing-helpers": "^0.3.2",
53
53
  "lit": "^2.0.0",
54
54
  "sinon": "^9.2.0"
55
55
  },
56
- "gitHead": "717908c222c1e241259e30b4144cd5ba32734819"
56
+ "gitHead": "e915550ec6400b5eae6c779fe0afeb1931399312"
57
57
  }
@@ -166,7 +166,7 @@ class Select extends DelegateFocusMixin(
166
166
  >
167
167
  <slot name="prefix" slot="prefix"></slot>
168
168
  <slot name="value"></slot>
169
- <div part="toggle-button" slot="suffix" aria-hidden="true"></div>
169
+ <div part="toggle-button" slot="suffix" aria-hidden="true" on-mousedown="_onToggleMouseDown"></div>
170
170
  </vaadin-input-container>
171
171
 
172
172
  <div part="helper-text">
@@ -500,6 +500,13 @@ class Select extends DelegateFocusMixin(
500
500
  this.opened = !this.readonly;
501
501
  }
502
502
 
503
+ /** @private */
504
+ _onToggleMouseDown(event) {
505
+ // Prevent mousedown event to avoid blur and preserve focused state
506
+ // while opening, and to restore focus-ring attribute on closing.
507
+ event.preventDefault();
508
+ }
509
+
503
510
  /**
504
511
  * @param {!KeyboardEvent} e
505
512
  * @protected