diff --git a/src/components/virtualscroller/VirtualScroller.vue b/src/components/virtualscroller/VirtualScroller.vue index 436d2841c..490c748ef 100644 --- a/src/components/virtualscroller/VirtualScroller.vue +++ b/src/components/virtualscroller/VirtualScroller.vue @@ -95,8 +95,10 @@ export default { loading(newValue) { this.d_loading = newValue; }, - items() { - this.init(); + items(newValue, oldVal) { + if (!oldVal || oldVal.length !== (newValue || []).length) { + this.init(); + } } }, methods: { @@ -512,7 +514,7 @@ export default { } } - return null; + return []; } } }