diff --git a/packages/primevue/src/virtualscroller/VirtualScroller.vue b/packages/primevue/src/virtualscroller/VirtualScroller.vue index ac947c07d..f2a05e8df 100644 --- a/packages/primevue/src/virtualscroller/VirtualScroller.vue +++ b/packages/primevue/src/virtualscroller/VirtualScroller.vue @@ -91,11 +91,12 @@ export default { this.d_loading = newValue; } }, - items(newValue, oldValue) { - if (!oldValue || oldValue.length !== (newValue || []).length) { + items: { + handler(newValue) { this.init(); this.calculateAutoSize(); - } + }, + deep: true }, itemSize() { this.init();