From 582ab690301e8a222cf430b0c52db708ea1fb0dc Mon Sep 17 00:00:00 2001 From: bir Date: Tue, 26 Nov 2024 14:47:21 +0100 Subject: [PATCH] Close dropdown without selecting an option with keyboard close #7999 --- src/mail-app/mail/view/LabelsPopup.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mail-app/mail/view/LabelsPopup.ts b/src/mail-app/mail/view/LabelsPopup.ts index b23728aadaab..8947a424e2b1 100644 --- a/src/mail-app/mail/view/LabelsPopup.ts +++ b/src/mail-app/mail/view/LabelsPopup.ts @@ -33,7 +33,9 @@ export class LabelsPopup implements ModalComponent { async hideAnimation(): Promise {} - onClose(): void {} + onClose(): void { + modal.remove(this) + } shortcuts(): Shortcut[] { return this.shortCuts @@ -59,7 +61,7 @@ export class LabelsPopup implements ModalComponent { const { label, state } = labelState const color = theme.content_button return m( - ".flex.items-center.plr.state-bg.cursor-pointer", + "label-item.flex.items-center.plr.state-bg.cursor-pointer", { "data-labelid": getElementId(label),