Merge pull request #430 from TriliumNext/fix

Fix global menu advanced command can't click
pull/431/head
Elian Doran 2024-09-14 14:40:03 +07:00 committed by GitHub
commit 29a1aad45a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

@ -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(