Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6776 fix: Virtual scroller: step prop in delay mode breaks the component #6862

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading