@vaadin/select 23.1.4 → 23.1.7

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