diff --git a/apps/frontend/src/app/shell/filter-tree/filter-tree.component.ts b/apps/frontend/src/app/shell/filter-tree/filter-tree.component.ts index 8cf797e..1547daf 100644 --- a/apps/frontend/src/app/shell/filter-tree/filter-tree.component.ts +++ b/apps/frontend/src/app/shell/filter-tree/filter-tree.component.ts @@ -105,6 +105,11 @@ export class FilterTreeComponent implements OnInit { onContextMenu(event: MouseEvent, trigger: MatMenuTrigger) { event.preventDefault(); trigger.openMenu(); + document + .querySelector('div.cdk-overlay-backdrop') + ?.addEventListener('mousedown', () => { + trigger.closeMenu(); + }); } selectChildren(folder: Folder) {