Message.tsx: Don't let event propagate on generic attachment click
This commit is contained in:
parent
34f2ce06c6
commit
9d50679473
1 changed files with 4 additions and 1 deletions
|
@ -1085,7 +1085,10 @@ export class Message extends React.PureComponent<Props, State> {
|
||||||
)}
|
)}
|
||||||
// There's only ever one of these, so we don't want users to tab into it
|
// There's only ever one of these, so we don't want users to tab into it
|
||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
onClick={() => {
|
onClick={event => {
|
||||||
|
event.stopPropagation();
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
if (!isDownloaded(firstAttachment)) {
|
if (!isDownloaded(firstAttachment)) {
|
||||||
kickOffAttachmentDownload({
|
kickOffAttachmentDownload({
|
||||||
attachment: firstAttachment,
|
attachment: firstAttachment,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue