diff options
author | kborchers <kris.borchers@gmail.com> | 2012-07-12 23:01:13 -0500 |
---|---|---|
committer | kborchers <kris.borchers@gmail.com> | 2012-07-12 23:01:13 -0500 |
commit | be0be892d3a2658f1f4518a7d3346ef356aa89c6 (patch) | |
tree | ff802545eb7136909ffae2c4c5bef84583e6815f /ui/jquery.ui.menu.js | |
parent | b8ad711deedab11da1f181b486ee67f259a3ef7c (diff) | |
download | jquery-ui-be0be892d3a2658f1f4518a7d3346ef356aa89c6.tar.gz jquery-ui-be0be892d3a2658f1f4518a7d3346ef356aa89c6.zip |
Menu: Fix issue with missing active item when clicking a menu item more than once
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 ); |