diff --git a/components/modal/ModalContainer.vue b/components/modal/ModalContainer.vue index f65fdede..f8e72c28 100644 --- a/components/modal/ModalContainer.vue +++ b/components/modal/ModalContainer.vue @@ -42,7 +42,6 @@ useEventListener('keydown', (e: KeyboardEvent) => { diff --git a/components/modal/ModalMediaPreview.vue b/components/modal/ModalMediaPreview.vue index 4053ce2f..ec7be2e3 100644 --- a/components/modal/ModalMediaPreview.vue +++ b/components/modal/ModalMediaPreview.vue @@ -22,14 +22,14 @@ function prev() { function onClick(e: MouseEvent) { const path = e.composedPath() as HTMLElement[] - const el = path.find(el => ['A', 'BUTTON', 'IMG', 'VIDEO'].includes(el.tagName?.toUpperCase())) + const el = path.find(el => ['A', 'BUTTON', 'IMG', 'VIDEO', 'P'].includes(el.tagName?.toUpperCase())) if (!el) emit('close') }