From f73466a3209f0241a78a550ec89395caa490256a Mon Sep 17 00:00:00 2001 From: maggiewachs Date: Thu, 24 Feb 2011 11:46:51 -0500 Subject: [PATCH] Removed active state when menu closes --- ui/jquery.ui.menu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 93b75326f..f51c261d4 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -256,7 +256,9 @@ $.widget("ui.menu", { }, closeAll: function() { - this.element.find("ul").hide(); + this.element + .find("ul").hide().end() + .find("a.ui-state-active").removeClass("ui-state-active"); this.blur(); this.activeMenu = this.element; }, -- 2.39.5