Browse Source

fix: click outside

pull/8990/head
DarkPhoenix2704 4 months ago
parent
commit
34f75bcba4
No known key found for this signature in database
GPG Key ID: 3F76B10622A07849
  1. 2
      packages/nc-gui/components/cell/attachment/Carousel.vue

2
packages/nc-gui/components/cell/attachment/Carousel.vue

@ -37,7 +37,7 @@ const { getPossibleAttachmentSrc } = useAttachment()
useEventListener(container, 'click', (e) => { useEventListener(container, 'click', (e) => {
const target = e.target as HTMLElement const target = e.target as HTMLElement
if (!target.closest('.keep-open') || !target.closest('.nc-button') || !target?.closest('img') || !target?.closest('video')) { if (!target.closest('.keep-open') && !target.closest('.nc-button') && !target?.closest('img') && !target?.closest('video')) {
selectedFile.value = false selectedFile.value = false
} }
}) })

Loading…
Cancel
Save