diff --git a/packages/nc-gui/components/cell/attachment/Carousel.vue b/packages/nc-gui/components/cell/attachment/Carousel.vue index e16621a5e5..c32244570f 100644 --- a/packages/nc-gui/components/cell/attachment/Carousel.vue +++ b/packages/nc-gui/components/cell/attachment/Carousel.vue @@ -37,7 +37,7 @@ const { getPossibleAttachmentSrc } = useAttachment() useEventListener(container, 'click', (e) => { const target = e.target as HTMLElement - if (!target.closest('.keep-open') || !target.closest('.nc-button')) { + if (!target.closest('.keep-open') || !target.closest('.nc-button') || !target?.closest('img') || !target?.closest('video')) { selectedFile.value = false } }) @@ -83,153 +83,152 @@ watchOnce(emblaMainApi, async (emblaMainApi) => {