@vaadin/combo-box 23.0.7 → 23.0.8
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 +13 -13
- package/src/vaadin-combo-box-mixin.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/combo-box",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
36
36
|
"@polymer/polymer": "^3.0.0",
|
|
37
|
-
"@vaadin/component-base": "^23.0.
|
|
38
|
-
"@vaadin/field-base": "^23.0.
|
|
39
|
-
"@vaadin/input-container": "^23.0.
|
|
40
|
-
"@vaadin/item": "^23.0.
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "^23.0.
|
|
42
|
-
"@vaadin/vaadin-material-styles": "^23.0.
|
|
43
|
-
"@vaadin/vaadin-overlay": "^23.0.
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "^23.0.
|
|
37
|
+
"@vaadin/component-base": "^23.0.8",
|
|
38
|
+
"@vaadin/field-base": "^23.0.8",
|
|
39
|
+
"@vaadin/input-container": "^23.0.8",
|
|
40
|
+
"@vaadin/item": "^23.0.8",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "^23.0.8",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "^23.0.8",
|
|
43
|
+
"@vaadin/vaadin-overlay": "^23.0.8",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "^23.0.8"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@esm-bundle/chai": "^4.3.4",
|
|
48
|
-
"@vaadin/dialog": "^23.0.
|
|
49
|
-
"@vaadin/polymer-legacy-adapter": "^23.0.
|
|
48
|
+
"@vaadin/dialog": "^23.0.8",
|
|
49
|
+
"@vaadin/polymer-legacy-adapter": "^23.0.8",
|
|
50
50
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
51
|
-
"@vaadin/text-field": "^23.0.
|
|
51
|
+
"@vaadin/text-field": "^23.0.8",
|
|
52
52
|
"lit": "^2.0.0",
|
|
53
53
|
"sinon": "^9.2.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "43fe9d95c8cd745adc7bef214c0097c47f4f83ed"
|
|
56
56
|
}
|
|
@@ -976,10 +976,11 @@ export const ComboBoxMixin = (subclass) =>
|
|
|
976
976
|
this._selectItemForValue(this.value);
|
|
977
977
|
}
|
|
978
978
|
|
|
979
|
-
|
|
979
|
+
const inputValue = this._inputElementValue;
|
|
980
|
+
if (inputValue === undefined || inputValue === this._getItemLabel(this.selectedItem)) {
|
|
980
981
|
// When the input element value is the same as the current value or not defined,
|
|
981
982
|
// set the focused index to the item that matches the value.
|
|
982
|
-
this._focusedIndex = this.
|
|
983
|
+
this._focusedIndex = this.$.dropdown.indexOfLabel(this._getItemLabel(this.selectedItem));
|
|
983
984
|
} else {
|
|
984
985
|
// When the user filled in something that is different from the current value = filtering is enabled,
|
|
985
986
|
// set the focused index to the item that matches the filter query.
|