@vaadin/vaadin-combo-box
Advanced tools
Comparing version 20.0.0-beta1 to 20.0.0-beta2
{ | ||
"name": "@vaadin/vaadin-combo-box", | ||
"version": "20.0.0-beta1", | ||
"version": "20.0.0-beta2", | ||
"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": "^20.0.0-beta1", | ||
"@vaadin/vaadin-element-mixin": "^20.0.0-beta1", | ||
"@vaadin/vaadin-item": "^20.0.0-beta1", | ||
"@vaadin/vaadin-lumo-styles": "^20.0.0-beta1", | ||
"@vaadin/vaadin-material-styles": "^20.0.0-beta1", | ||
"@vaadin/vaadin-overlay": "^20.0.0-beta1", | ||
"@vaadin/vaadin-text-field": "^20.0.0-beta1", | ||
"@vaadin/vaadin-themable-mixin": "^20.0.0-beta1" | ||
"@vaadin/vaadin-control-state-mixin": "^20.0.0-beta2", | ||
"@vaadin/vaadin-element-mixin": "^20.0.0-beta2", | ||
"@vaadin/vaadin-item": "^20.0.0-beta2", | ||
"@vaadin/vaadin-lumo-styles": "^20.0.0-beta2", | ||
"@vaadin/vaadin-material-styles": "^20.0.0-beta2", | ||
"@vaadin/vaadin-overlay": "^20.0.0-beta2", | ||
"@vaadin/vaadin-text-field": "^20.0.0-beta2", | ||
"@vaadin/vaadin-themable-mixin": "^20.0.0-beta2" | ||
}, | ||
@@ -45,4 +45,4 @@ "devDependencies": { | ||
"@polymer/paper-input": "^3.0.0", | ||
"@vaadin/testing-helpers": "^0.1.5", | ||
"@vaadin/vaadin-dialog": "^20.0.0-beta1", | ||
"@vaadin/testing-helpers": "^0.2.1", | ||
"@vaadin/vaadin-dialog": "^20.0.0-beta2", | ||
"sinon": "^9.2.0" | ||
@@ -53,3 +53,3 @@ }, | ||
}, | ||
"gitHead": "a8bc4c410600c8039e8e3f5fa4c763fdb328e10d" | ||
"gitHead": "508e847c3b066d30ba8ebe1fd38c75d39cdbe886" | ||
} |
@@ -28,3 +28,3 @@ /** | ||
* | ||
* See [ThemableMixin – how to apply styles for shadow parts](https://github.com/vaadin/vaadin-themable-mixin/wiki) | ||
* See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation. | ||
* | ||
@@ -31,0 +31,0 @@ * @mixes ThemableMixin |
@@ -673,5 +673,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) | ||
)) || | ||
[]; | ||
@@ -695,3 +698,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]); | ||
@@ -698,0 +701,0 @@ } else { |
@@ -162,3 +162,3 @@ import { TextFieldElement } from '@vaadin/vaadin-text-field/vaadin-text-field'; | ||
* | ||
* See [ThemableMixin – how to apply styles for shadow parts](https://github.com/vaadin/vaadin-themable-mixin/wiki) | ||
* See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation. | ||
* | ||
@@ -165,0 +165,0 @@ * @fires {Event} change - Fired when the user commits a value change. |
@@ -162,3 +162,3 @@ /** | ||
* | ||
* See [ThemableMixin – how to apply styles for shadow parts](https://github.com/vaadin/vaadin-themable-mixin/wiki) | ||
* See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation. | ||
* | ||
@@ -260,3 +260,3 @@ * @fires {Event} change - Fired when the user commits a value change. | ||
static get version() { | ||
return '20.0.0-beta1'; | ||
return '20.0.0-beta2'; | ||
} | ||
@@ -263,0 +263,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
143578
3658
9437