@vaadin/vaadin-combo-box
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-combo-box", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"main": "vaadin-combo-box.js", | ||
@@ -61,4 +61,4 @@ "author": "Vaadin Ltd", | ||
"wct-browser-legacy": "^1.0.1", | ||
"@vaadin/vaadin-demo-helpers": "^2.2.0" | ||
"@vaadin/vaadin-demo-helpers": "^3.0.0" | ||
} | ||
} |
@@ -157,2 +157,6 @@ /** | ||
} | ||
if (page === 0 && this.__repositionOverlayDebouncer && items.length > (this.__maxRenderedItems || 0)) { | ||
setTimeout(() => this.__repositionOverlayDebouncer.flush()); | ||
this.__maxRenderedItems = items.length; | ||
} | ||
} | ||
@@ -159,0 +163,0 @@ }; |
@@ -332,2 +332,5 @@ /** | ||
_scrollIntoView(index) { | ||
if (!(this.opened && index >= 0)) { | ||
return; | ||
} | ||
const visibleItemsCount = this._visibleItemsCount(); | ||
@@ -343,2 +346,5 @@ if (visibleItemsCount === undefined) { | ||
// Index is below the bottom, scrolling down. Make the item appear at the bottom. | ||
// First scroll to target (will be at the top of the scroller) to make sure it's rendered. | ||
this._selector.scrollToIndex(index); | ||
// Then calculate the index for the following scroll (to get the target to bottom of the scroller). | ||
targetIndex = index - visibleItemsCount + 1; | ||
@@ -345,0 +351,0 @@ } else if (index > this._selector.firstVisibleIndex) { |
@@ -234,3 +234,3 @@ /** | ||
static get version() { | ||
return '5.0.2'; | ||
return '5.0.3'; | ||
} | ||
@@ -237,0 +237,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
109243
2639