Skip to content

Commit

Permalink
chore: q-n-d solve contextmenu for second right mouse click
Browse files Browse the repository at this point in the history
  • Loading branch information
John van Leeuwen committed Oct 6, 2024
1 parent b159d26 commit f578116
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f578116

Please sign in to comment.