Fix mailto: that i broke in #484

This commit is contained in:
the-djmaze 2022-09-30 11:38:51 +02:00
parent ec24392664
commit 54107ca937
4 changed files with 36 additions and 24 deletions

View file

@ -252,11 +252,10 @@ export class MailMessageView extends AbstractViewRight {
ThemeStore.isMobile() && leftPanelDisabled(true);
let el = eqs(event, 'a');
if (el) {
return !(
0 === event.button &&
mailToHelper(el.href)
);
if (el && 0 === event.button && mailToHelper(el.href)) {
event.preventDefault();
event.stopPropagation();
return;
}
if (eqs(event, '.attachmentsPlace .attachmentIconParent')) {