Skip to content

Commit

Permalink
fix: Clicking uploaded file title replaces current tab (#29174)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh authored May 26, 2023
1 parent b03fcd9 commit 347e206
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/friendly-apricots-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

fix: Clicking uploaded file title replaces current tab
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
Expand Down

0 comments on commit 347e206

Please sign in to comment.