Skip to content
Permalink
Browse files

Menu: Fix issue with missing active item when clicking a menu item mo…

…re than once
  • Loading branch information...
kborchers committed Jul 13, 2012
1 parent b8ad711 commit be0be892d3a2658f1f4518a7d3346ef356aa89c6
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 );

0 comments on commit be0be89

Please sign in to comment.
You can’t perform that action at this time.