@vaadin/select 23.2.0-alpha1 → 23.2.0-alpha2

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.2.0-alpha1",
3
+ "version": "23.2.0-alpha2",
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.2.0-alpha1",
40
- "@vaadin/component-base": "23.2.0-alpha1",
41
- "@vaadin/field-base": "23.2.0-alpha1",
42
- "@vaadin/input-container": "23.2.0-alpha1",
43
- "@vaadin/item": "23.2.0-alpha1",
44
- "@vaadin/list-box": "23.2.0-alpha1",
45
- "@vaadin/lit-renderer": "23.2.0-alpha1",
46
- "@vaadin/vaadin-list-mixin": "23.2.0-alpha1",
47
- "@vaadin/vaadin-lumo-styles": "23.2.0-alpha1",
48
- "@vaadin/vaadin-material-styles": "23.2.0-alpha1",
49
- "@vaadin/vaadin-overlay": "23.2.0-alpha1",
50
- "@vaadin/vaadin-themable-mixin": "23.2.0-alpha1"
39
+ "@vaadin/button": "23.2.0-alpha2",
40
+ "@vaadin/component-base": "23.2.0-alpha2",
41
+ "@vaadin/field-base": "23.2.0-alpha2",
42
+ "@vaadin/input-container": "23.2.0-alpha2",
43
+ "@vaadin/item": "23.2.0-alpha2",
44
+ "@vaadin/list-box": "23.2.0-alpha2",
45
+ "@vaadin/lit-renderer": "23.2.0-alpha2",
46
+ "@vaadin/vaadin-list-mixin": "23.2.0-alpha2",
47
+ "@vaadin/vaadin-lumo-styles": "23.2.0-alpha2",
48
+ "@vaadin/vaadin-material-styles": "23.2.0-alpha2",
49
+ "@vaadin/vaadin-overlay": "23.2.0-alpha2",
50
+ "@vaadin/vaadin-themable-mixin": "23.2.0-alpha2"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@esm-bundle/chai": "^4.3.4",
54
- "@vaadin/polymer-legacy-adapter": "23.2.0-alpha1",
54
+ "@vaadin/polymer-legacy-adapter": "23.2.0-alpha2",
55
55
  "@vaadin/testing-helpers": "^0.3.2",
56
56
  "lit": "^2.0.0",
57
57
  "sinon": "^13.0.2"
58
58
  },
59
- "gitHead": "f226a2976c270d3d53c824f6e0a740a5d3382d91"
59
+ "gitHead": "c9b8113d0fa9a602f8b9cb915c1826355af2e8df"
60
60
  }
@@ -659,8 +659,9 @@ class Select extends DelegateFocusMixin(FieldMixin(ElementMixin(ThemableMixin(Po
659
659
  /** @private */
660
660
  _updateSelectedItem(value, items) {
661
661
  if (items) {
662
+ const valueAsString = value == null ? value : value.toString();
662
663
  this._menuElement.selected = items.reduce((prev, item, idx) => {
663
- return prev === undefined && item.value === value ? idx : prev;
664
+ return prev === undefined && item.value === valueAsString ? idx : prev;
664
665
  }, undefined);
665
666
  if (!this._selectedChanging) {
666
667
  this._valueChanging = true;