@vaadin/vaadin-combo-box
Advanced tools
Comparing version 21.0.0-alpha1 to 21.0.0-alpha2
{ | ||
"name": "@vaadin/vaadin-combo-box", | ||
"version": "21.0.0-alpha1", | ||
"version": "21.0.0-alpha2", | ||
"description": "Web Component for displaying a list of items with filtering", | ||
@@ -31,10 +31,10 @@ "main": "vaadin-combo-box.js", | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/vaadin-control-state-mixin": "^21.0.0-alpha1", | ||
"@vaadin/vaadin-element-mixin": "^21.0.0-alpha1", | ||
"@vaadin/vaadin-item": "^21.0.0-alpha1", | ||
"@vaadin/vaadin-lumo-styles": "^21.0.0-alpha1", | ||
"@vaadin/vaadin-material-styles": "^21.0.0-alpha1", | ||
"@vaadin/vaadin-overlay": "^21.0.0-alpha1", | ||
"@vaadin/vaadin-text-field": "^21.0.0-alpha1", | ||
"@vaadin/vaadin-themable-mixin": "^21.0.0-alpha1" | ||
"@vaadin/vaadin-control-state-mixin": "^21.0.0-alpha2", | ||
"@vaadin/vaadin-element-mixin": "^21.0.0-alpha2", | ||
"@vaadin/vaadin-item": "^21.0.0-alpha2", | ||
"@vaadin/vaadin-lumo-styles": "^21.0.0-alpha2", | ||
"@vaadin/vaadin-material-styles": "^21.0.0-alpha2", | ||
"@vaadin/vaadin-overlay": "^21.0.0-alpha2", | ||
"@vaadin/vaadin-text-field": "^21.0.0-alpha2", | ||
"@vaadin/vaadin-themable-mixin": "^21.0.0-alpha2" | ||
}, | ||
@@ -46,4 +46,4 @@ "devDependencies": { | ||
"@vaadin/testing-helpers": "^0.2.1", | ||
"@vaadin/vaadin-dialog": "^21.0.0-alpha1", | ||
"@vaadin/vaadin-template-renderer": "^21.0.0-alpha1", | ||
"@vaadin/vaadin-dialog": "^21.0.0-alpha2", | ||
"@vaadin/vaadin-template-renderer": "^21.0.0-alpha2", | ||
"sinon": "^9.2.0" | ||
@@ -54,3 +54,3 @@ }, | ||
}, | ||
"gitHead": "8542c7dadc4c86e454a48613f0f2d027dcb5aa86" | ||
"gitHead": "d2ac6991581b0fa243f3dd61c31c70810fc403ef" | ||
} |
@@ -638,5 +638,8 @@ /** | ||
} else { | ||
const toLowerCase = (item) => item && item.toLowerCase && item.toLowerCase(); | ||
const itemsMatchedByLabel = | ||
(this.filteredItems && | ||
this.filteredItems.filter((item) => this._getItemLabel(item) === this._inputElementValue)) || | ||
this.filteredItems.filter( | ||
(item) => toLowerCase(this._getItemLabel(item)) === toLowerCase(this._inputElementValue) | ||
)) || | ||
[]; | ||
@@ -660,3 +663,3 @@ if ( | ||
} | ||
} else if (!this.allowCustomValue && !this.opened && itemsMatchedByLabel.length == 1) { | ||
} else if (!this.allowCustomValue && !this.opened && itemsMatchedByLabel.length > 0) { | ||
this.value = this._getItemValue(itemsMatchedByLabel[0]); | ||
@@ -663,0 +666,0 @@ } else { |
@@ -246,3 +246,3 @@ /** | ||
static get version() { | ||
return '21.0.0-alpha1'; | ||
return '21.0.0-alpha2'; | ||
} | ||
@@ -249,0 +249,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137979
3507