Skip to content
Snippets Groups Projects
Unverified Commit 347e2060 authored by gabriellsh's avatar gabriellsh Committed by GitHub
Browse files

fix: Clicking uploaded file title replaces current tab (#29174)

parent b03fcd9c
No related branches found
No related tags found
No related merge requests found
---
"@rocket.chat/meteor": patch
---
fix: Clicking uploaded file title replaces current tab
......@@ -36,11 +36,7 @@ export const GenericFileAttachment: FC<MessageAttachmentBase> = ({
<MessageGenericPreviewContent
thumb={<MessageGenericPreviewIcon name='attachment-file' type={format || getFileExtension(title)} />}
>
<MessageGenericPreviewTitle
externalUrl={hasDownload && link ? getURL(link) : undefined}
data-qa-type='attachment-title-link'
download={hasDownload}
>
<MessageGenericPreviewTitle externalUrl={hasDownload && link ? getURL(link) : undefined} data-qa-type='attachment-title-link'>
{title}
</MessageGenericPreviewTitle>
{size && (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment