Skip to content

Commit

Permalink
Merge pull request #6862 from avramz/virtual-scroller-lazy
Browse files Browse the repository at this point in the history
#6776 fix: Virtual scroller: step prop in delay mode breaks the component
  • Loading branch information
tugcekucukoglu authored Nov 26, 2024
2 parents 9959769 + ea211d6 commit 05530cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/virtualscroller/VirtualScroller.vue
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ export default {
return Math.floor(((first ?? this.first) + this.d_numToleratedItems * 4) / (this.step || 1));
},
isPageChanged(first) {
return this.step ? this.page !== this.getPageByFirst(first ?? this.first) : true;
return this.step && !this.lazy ? this.page !== this.getPageByFirst(first ?? this.first) : true;
},
setContentEl(el) {
this.content = el || this.content || findSingle(this.element, '[data-pc-section="content"]');
Expand Down

0 comments on commit 05530cc

Please sign in to comment.