From c5f7d6d1e98187c3a62292fc09738cb18c6b2940 Mon Sep 17 00:00:00 2001 From: Anna No Date: Wed, 13 Apr 2022 21:16:49 +0700 Subject: [PATCH] Fix card & file drop issues Signed-off-by: Anna No --- .../src/components/AttachmentDroppable.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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-- }