Merge pull request #7891 from Budibase/fix/table-cell-attachment-click-propagation

Fix/table cell attachment click propagation
This commit is contained in:
Martin McKeaveney 2022-09-26 12:06:58 +01:00 committed by GitHub
commit fa9c4c6e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

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>