diff --git a/plugins/attachment-resources/src/components/AttachmentActions.svelte b/plugins/attachment-resources/src/components/AttachmentActions.svelte index 625a17773e..0c7e43727b 100644 --- a/plugins/attachment-resources/src/components/AttachmentActions.svelte +++ b/plugins/attachment-resources/src/components/AttachmentActions.svelte @@ -25,6 +25,8 @@ export let attachment: Attachment export let isSaved = false + let download: HTMLAnchorElement + $: saveAttachmentAction = isSaved ? ({ label: attachmentPlugin.string.RemoveAttachmentFromSaved, @@ -67,9 +69,10 @@ class="mr-1" href={getFileUrl(attachment.file, 'full', attachment.name)} download={attachment.name} + bind:this={download} on:click|stopPropagation > - {}} /> + download.click()} />