diff --git a/src/components/DynamicScrollerItem.vue b/src/components/DynamicScrollerItem.vue index 212a81f9..9d3ef1e5 100644 --- a/src/components/DynamicScrollerItem.vue +++ b/src/components/DynamicScrollerItem.vue @@ -194,7 +194,7 @@ export default { }, observeSize () { - if (!this.vscrollResizeObserver) return + if (!this.vscrollResizeObserver || !this.$el.parentNode) return this.vscrollResizeObserver.observe(this.$el.parentNode) this.$el.parentNode.addEventListener('resize', this.onResize) },