From f4f59b2fffb885f79c6001c60e062163309ca7b1 Mon Sep 17 00:00:00 2001 From: chfhtw Date: Mon, 21 Jul 2025 13:49:52 +0200 Subject: [PATCH] Bugfix check textnodes --- public/js/components/Calendar/Base/Grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/components/Calendar/Base/Grid.js b/public/js/components/Calendar/Base/Grid.js index f9f55bd63..7800955d8 100644 --- a/public/js/components/Calendar/Base/Grid.js +++ b/public/js/components/Calendar/Base/Grid.js @@ -268,7 +268,7 @@ export default { if (!this.mutationObserver) this.mutationObserver = new MutationObserver(mutations => { - if (mutations.some(m => [].some.call(m.addedNodes, el => el.matches('.fhc-calendar-base-grid-line-event')))) + if (mutations.some(m => m.addedNodes.length && [].some.call(m.addedNodes, el => el.matches && el.matches('.fhc-calendar-base-grid-line-event')))) this.scrollToEarliestEvent(); }); this.mutationObserver.observe(this.$refs.body, {