From 27e02f0f3b5c2352cb56ab673baa66046dcc1ba4 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <bruederli@kolabsys.com> Date: Fri, 21 Aug 2015 08:59:04 -0400 Subject: [PATCH] Fix closing of nested menus (#1490443) --- program/js/app.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 7749e29..d3ae10b 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -7063,7 +7063,7 @@ if (show) { // truncate stack down to the one containing the ref link 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); } if (stack && this.menu_stack.length) { -- Gitblit v1.9.1