From b7fd9334994ec27f066c364aa911df382b204131 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Wed, 23 Nov 2022 11:22:20 +0100 Subject: [PATCH] Resolve #691 --- dev/View/User/MailBox/MessageView.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/View/User/MailBox/MessageView.js b/dev/View/User/MailBox/MessageView.js index 4855fccac..a589de2bc 100644 --- a/dev/View/User/MailBox/MessageView.js +++ b/dev/View/User/MailBox/MessageView.js @@ -265,8 +265,9 @@ export class MailMessageView extends AbstractViewRight { return; } - if (eqs(event, '.attachmentsPlace .attachmentIconParent')) { + if (eqs(event, '.attachmentsPlace .showPreview')) { event.stopPropagation(); + return; } el = eqs(event, '.attachmentsPlace .showPreplay'); @@ -287,9 +288,10 @@ export class MailMessageView extends AbstractViewRight { // no default } } + return; } - el = eqs(event, '.attachmentsPlace .attachmentName'); + el = eqs(event, '.attachmentItem'); if (el) { const attachment = ko.dataFor(el), url = attachment?.linkDownload(); if (url) {