fix global menu advanced command can't click

This commit is contained in:
Jin 2024-09-14 11:02:23 +02:00
parent 73cd54e75c
commit c4f430276a

View File

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