diff --git a/plugins/attachment-resources/src/components/AttachmentDroppable.svelte b/plugins/attachment-resources/src/components/AttachmentDroppable.svelte index a4b6d834e1..856ba9d711 100644 --- a/plugins/attachment-resources/src/components/AttachmentDroppable.svelte +++ b/plugins/attachment-resources/src/components/AttachmentDroppable.svelte @@ -36,14 +36,15 @@ return } + e.preventDefault() + e.stopPropagation() + const list = e.dataTransfer?.files if (list === undefined || list.length === 0) return loading++ try { await createAttachments(client, list, { objectClass, objectId, space }) - e.preventDefault() - e.stopPropagation() } finally { loading-- }