diff --git a/src/components/NcRichText/NcReferenceWidget.vue b/src/components/NcRichText/NcReferenceWidget.vue index d4f0bcac78..436d00aefe 100644 --- a/src/components/NcRichText/NcReferenceWidget.vue +++ b/src/components/NcRichText/NcReferenceWidget.vue @@ -72,9 +72,11 @@ export default { const widgetRoot = ref() const { width } = useElementSize(widgetRoot) - useIntersectionObserver(widgetRoot, () => { - nextTick(() => { - isVisible.value = widgetRoot.value?.isIntersecting ?? false + useIntersectionObserver(widgetRoot, (entries) => { + entries.forEach(entry => { + nextTick(() => { + isVisible.value = entry.isIntersecting + }) }) })