Skip to content

Commit

Permalink
Merge pull request #430 from TriliumNext/fix
Browse files Browse the repository at this point in the history
Fix global menu advanced command can't click
  • Loading branch information
eliandoran authored Sep 14, 2024
2 parents 9e85d2c + c4f4302 commit 29a1aad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/public/app/widgets/buttons/global_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ export default class GlobalMenuWidget extends BasicWidget {
this.dropdown.toggle();
});
this.$widget.on('click', '.dropdown-submenu', e => {
e.stopPropagation();
if ($(e.target).children(".dropdown-menu").length === 1 || $(e.target).hasClass('dropdown-toggle')) {
e.stopPropagation();
}
})

this.$widget.find(".global-menu-button-update-available").append(
Expand Down

0 comments on commit 29a1aad

Please sign in to comment.