Skip to content
Permalink
Browse files

Menu: Move addClass(active) call to _open to make it work for both mouse

and keyboard interactions
  • Loading branch information
jzaefferer committed Feb 28, 2011
1 parent 31a181a commit a256e05df5e3765f6e0db15b5c842a3927542572
Showing with 2 additions and 1 deletion.
  1. +2 −1 ui/jquery.ui.menu.js
@@ -219,7 +219,6 @@ $.widget("ui.menu", {
var nested = $(">ul", item);
if (nested.length && /^mouse/.test(event.type)) {
self._open(nested);
this.active.find(">a:first").addClass("ui-state-active");
}
this.activeMenu = item.parent();

@@ -253,6 +252,8 @@ $.widget("ui.menu", {
);

submenu.show().position(position);

this.active.find(">a:first").addClass("ui-state-active");
},

closeAll: function() {

0 comments on commit a256e05

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