From ea211d63ecefce65d25d753d1bf65ce5e1024601 Mon Sep 17 00:00:00 2001 From: uros Date: Mon, 25 Nov 2024 20:53:54 +0100 Subject: [PATCH] #6776 fix: Virtual scroller: step prop in delay mode breaks the component closes #6776 --- packages/primevue/src/virtualscroller/VirtualScroller.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/virtualscroller/VirtualScroller.vue b/packages/primevue/src/virtualscroller/VirtualScroller.vue index 0b65187b56..ac947c07d9 100644 --- a/packages/primevue/src/virtualscroller/VirtualScroller.vue +++ b/packages/primevue/src/virtualscroller/VirtualScroller.vue @@ -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"]');