Skip to content

Commit

Permalink
primefaces#6776 fix: Virtual scroller: step prop in delay mode breaks…
Browse files Browse the repository at this point in the history
… the component

closes primefaces#6776
  • Loading branch information
avramz committed Nov 25, 2024
1 parent 999bb50 commit ea211d6
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 ea211d6

Please sign in to comment.