Fix closing of nested menus (#1490443)

pull/292/merge
Thomas Bruederli 9 years ago committed by Thomas Bruederli
parent 60ab554003
commit 7417893c22

@ -7151,7 +7151,7 @@ function rcube_webmail()
if (show) { if (show) {
// truncate stack down to the one containing the ref link // truncate stack down to the one containing the ref link
for (var i = this.menu_stack.length - 1; stack && i >= 0; i--) { for (var i = this.menu_stack.length - 1; stack && i >= 0; i--) {
if (!$(ref).parents('#'+this.menu_stack[i]).length) if (!$(ref).parents('#'+this.menu_stack[i]).length && $(event.target).parent().attr('role') != 'menuitem')
this.hide_menu(this.menu_stack[i], event); this.hide_menu(this.menu_stack[i], event);
} }
if (stack && this.menu_stack.length) { if (stack && this.menu_stack.length) {

Loading…
Cancel
Save