Skip to content

Commit

Permalink
Close dropdown without selecting an option with keyboard
Browse files Browse the repository at this point in the history
close #7999
  • Loading branch information
BijinDev committed Nov 26, 2024
1 parent 5882e38 commit 582ab69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mail-app/mail/view/LabelsPopup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export class LabelsPopup implements ModalComponent {

async hideAnimation(): Promise<void> {}

onClose(): void {}
onClose(): void {
modal.remove(this)
}

shortcuts(): Shortcut[] {
return this.shortCuts
Expand All @@ -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),
Expand Down

0 comments on commit 582ab69

Please sign in to comment.