1
0
Fork 0
mirror of synced 2024-09-18 02:08:34 +12:00

Stop click propagation on attachment links in tables

This commit is contained in:
Dean 2022-09-21 16:01:18 +01:00
parent 8bf3f7bbd9
commit 8946bb5f6a

View file

@ -20,6 +20,9 @@
target="_blank" target="_blank"
download={attachment.name} download={attachment.name}
href={attachment.url} href={attachment.url}
on:click={e => {
e.stopPropagation()
}}
> >
<div class="center" title={attachment.name}> <div class="center" title={attachment.name}>
<img src={attachment.url} alt={attachment.extension} /> <img src={attachment.url} alt={attachment.extension} />
@ -32,6 +35,9 @@
target="_blank" target="_blank"
download={attachment.name} download={attachment.name}
href={attachment.url} href={attachment.url}
on:click={e => {
e.stopPropagation()
}}
> >
{attachment.extension} {attachment.extension}
</Link> </Link>