Skip to content

Commit

Permalink
Merge pull request #48 from vaadin-component-factory/fix-47
Browse files Browse the repository at this point in the history
fix: Use public API to calculate page instead of now removed private function
  • Loading branch information
TatuLund authored Dec 14, 2023
2 parents 10e251a + f5ad44c commit 39179f0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export function _getItemOverriden(index, el) {
}
} else {
this.__updateLoading(el, true);
this._loadPage(this._getPageForIndex(scaledIndex), cache);
const page = Math.floor(scaledIndex / this.pageSize);
this._loadPage(page, cache);
}
/** focus when get item if there is an item to focus **/
if (this._rowNumberToFocus > -1) {
Expand Down

0 comments on commit 39179f0

Please sign in to comment.