From 59f3f1b0aee9ab8ea276fee60e204b6dcc0baceb Mon Sep 17 00:00:00 2001 From: Varun Devulapalli <46848465+dsvs12@users.noreply.github.com> Date: Mon, 10 Oct 2022 13:40:26 -0400 Subject: [PATCH] fix: issue with beforeDestroy hook (#748) --- src/components/DynamicScrollerItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) },