aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/jquery.ui.menu.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index f51c261d4..5bdb2bf7a 100644
--- a/ui/jquery.ui.menu.js
+++ b/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() {