@vaadin/vaadin-combo-box
Advanced tools
Comparing version 4.2.0-alpha5 to 4.2.0-alpha6
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-combo-box", | ||
"version": "4.2.0-alpha5", | ||
"version": "4.2.0-alpha6", | ||
"main": "vaadin-combo-box.js", | ||
@@ -16,0 +16,0 @@ "author": "Vaadin Ltd", |
@@ -167,6 +167,6 @@ /** | ||
const filteredItems = []; | ||
filteredItems.length = this.size || 0; | ||
this.filteredItems = new Array(...filteredItems).map(item => { | ||
return new ComboBoxPlaceholder(); | ||
}); | ||
for (let i = 0; i < (this.size || 0); i++) { | ||
filteredItems.push(new ComboBoxPlaceholder()); | ||
} | ||
this.filteredItems = filteredItems; | ||
if (this.opened) { | ||
@@ -177,8 +177,8 @@ this._loadPage(0); | ||
_sizeChanged(size) { | ||
const filteredItems = this.filteredItems || []; | ||
filteredItems.length = size || 0; | ||
this.filteredItems = new Array(...filteredItems).map(item => { | ||
return item !== undefined ? item : new ComboBoxPlaceholder(); | ||
}); | ||
_sizeChanged(size = 0) { | ||
const filteredItems = (this.filteredItems || []).slice(0); | ||
for (let i = 0; i < size; i++) { | ||
filteredItems[i] = filteredItems[i] !== undefined ? filteredItems[i] : new ComboBoxPlaceholder(); | ||
} | ||
this.filteredItems = filteredItems; | ||
} | ||
@@ -185,0 +185,0 @@ |
@@ -255,3 +255,3 @@ /** | ||
static get version() { | ||
return '4.2.0-alpha5'; | ||
return '4.2.0-alpha6'; | ||
} | ||
@@ -258,0 +258,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
101605