@vaadin/combo-box 22.0.13 → 22.0.14

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/combo-box",
3
- "version": "22.0.13",
3
+ "version": "22.0.14",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,23 +33,23 @@
33
33
  "dependencies": {
34
34
  "@open-wc/dedupe-mixin": "^1.3.0",
35
35
  "@polymer/polymer": "^3.0.0",
36
- "@vaadin/component-base": "^22.0.13",
37
- "@vaadin/field-base": "^22.0.13",
38
- "@vaadin/input-container": "^22.0.13",
39
- "@vaadin/item": "^22.0.13",
40
- "@vaadin/vaadin-lumo-styles": "^22.0.13",
41
- "@vaadin/vaadin-material-styles": "^22.0.13",
42
- "@vaadin/vaadin-overlay": "^22.0.13",
43
- "@vaadin/vaadin-themable-mixin": "^22.0.13"
36
+ "@vaadin/component-base": "^22.0.14",
37
+ "@vaadin/field-base": "^22.0.14",
38
+ "@vaadin/input-container": "^22.0.14",
39
+ "@vaadin/item": "^22.0.14",
40
+ "@vaadin/vaadin-lumo-styles": "^22.0.14",
41
+ "@vaadin/vaadin-material-styles": "^22.0.14",
42
+ "@vaadin/vaadin-overlay": "^22.0.14",
43
+ "@vaadin/vaadin-themable-mixin": "^22.0.14"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@esm-bundle/chai": "^4.3.4",
47
- "@vaadin/dialog": "^22.0.13",
48
- "@vaadin/polymer-legacy-adapter": "^22.0.13",
47
+ "@vaadin/dialog": "^22.0.14",
48
+ "@vaadin/polymer-legacy-adapter": "^22.0.14",
49
49
  "@vaadin/testing-helpers": "^0.3.2",
50
- "@vaadin/text-field": "^22.0.13",
50
+ "@vaadin/text-field": "^22.0.14",
51
51
  "lit": "^2.0.0",
52
52
  "sinon": "^9.2.0"
53
53
  },
54
- "gitHead": "0ef3a237a2db4255710aa878debb169eb52a1715"
54
+ "gitHead": "62419e3f8f41fe9dc4f0bce5e1717b16828459b6"
55
55
  }
@@ -966,10 +966,11 @@ export const ComboBoxMixin = (subclass) =>
966
966
  this._selectItemForValue(this.value);
967
967
  }
968
968
 
969
- if (this._inputElementValue === undefined || this._inputElementValue === this.value) {
969
+ const inputValue = this._inputElementValue;
970
+ if (inputValue === undefined || inputValue === this._getItemLabel(this.selectedItem)) {
970
971
  // When the input element value is the same as the current value or not defined,
971
972
  // set the focused index to the item that matches the value.
972
- this._focusedIndex = this._indexOfValue(this.value, this.filteredItems);
973
+ this._focusedIndex = this.$.dropdown.indexOfLabel(this._getItemLabel(this.selectedItem));
973
974
  } else {
974
975
  // When the user filled in something that is different from the current value = filtering is enabled,
975
976
  // set the focused index to the item that matches the filter query.