From be0be892d3a2658f1f4518a7d3346ef356aa89c6 Mon Sep 17 00:00:00 2001 From: kborchers Date: Thu, 12 Jul 2012 23:01:13 -0500 Subject: [PATCH] Menu: Fix issue with missing active item when clicking a menu item more than once --- ui/jquery.ui.menu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index e8b8ed1fc..be04fff1c 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -583,7 +583,8 @@ $.widget( "ui.menu", { select: function( event ) { // Save active reference before collapseAll triggers blur var ui = { - item: this.active + // Selecting a menu item removes the active item causing multiple clicks to be missing an item + item: this.active || $( event.target ).closest( ".ui-menu-item" ) }; this.collapseAll( event, true ); this._trigger( "select", event, ui ); -- 2.39.5