Skip to content
Permalink
Browse files

Fix collapsing submenus issue

  • Loading branch information
hanshillen committed Apr 22, 2011
1 parent 42e11d8 commit 84f918ae44ed6002d67f568ecffbb262f1e9e115
Showing with 1 addition and 3 deletions.
  1. +1 −3 ui/jquery.ui.menu.js
@@ -283,17 +283,15 @@ $.widget("ui.menu", {
},

_open: function(submenu) {
clearTimeout(this.timer);
this.element.find(".ui-menu").not(submenu.parents()).hide().attr("aria-hidden", "true");

var position = $.extend({}, {
of: this.active
}, $.type(this.options.position) == "function"
? this.options.position(this.active)
: this.options.position
);

submenu.show().removeAttr("aria-hidden").attr("aria-expanded", "true").position(position);

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

0 comments on commit 84f918a

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