@vaadin-component-factory/vcf-auto-select-combobox
Advanced tools
Comparing version 17.0.1 to 23.4.0
{ | ||
"name": "@vaadin-component-factory/vcf-auto-select-combobox", | ||
"version": "17.0.1", | ||
"version": "23.4.0", | ||
"description": "The AutoSelect Combobox component extends from Combobox", | ||
@@ -12,2 +12,3 @@ "main": "src/vcf-auto-select-combobox.js", | ||
}, | ||
"type": "module", | ||
"keywords": [ | ||
@@ -48,5 +49,5 @@ "Vaadin", | ||
"@polymer/polymer": "^3.4.1", | ||
"@vaadin/combo-box": "^23.3.6", | ||
"@vaadin/vaadin-lumo-styles": "^23.3.6", | ||
"@vaadin/vaadin-themable-mixin": "^23.3.6" | ||
"@vaadin/combo-box": "^23.4.0", | ||
"@vaadin/vaadin-lumo-styles": "^23.4.0", | ||
"@vaadin/vaadin-themable-mixin": "^23.4.0" | ||
}, | ||
@@ -61,3 +62,3 @@ "devDependencies": { | ||
"@polymer/test-fixture": "^4.0.2", | ||
"@vaadin-component-factory/vcf-element-util": "^0.1.4", | ||
"@vaadin-component-factory/vcf-element-util": "^0.3.5", | ||
"@web/dev-server": "^0.1.34", | ||
@@ -64,0 +65,0 @@ "@webcomponents/webcomponentsjs": "^2.0.0", |
@@ -54,14 +54,5 @@ import { ComboBox } from '@vaadin/combo-box'; | ||
_filteredItemsChanged(filteredItems, oldFilteredItems) { | ||
if (this.filter === '') { | ||
// cleared filter | ||
this._focusedIndex = -1; | ||
return; | ||
} | ||
// if filteredItems has a single item then return index 0 else do standard behaviour | ||
super._filteredItemsChanged(filteredItems, oldFilteredItems); | ||
if (this.filteredItems && this.filteredItems.length === 1) { | ||
this._focusedIndex = 0; | ||
} else if (this.opened || this.autoOpenDisabled) { | ||
this._focusedIndex = this.__getItemIndexByLabel(this.filteredItems, this.filter); | ||
} else { | ||
this._focusedIndex = this.__getItemIndexByLabel(this.filteredItems, this.value); | ||
} | ||
@@ -68,0 +59,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Yes
19195
72
1