diff options
author | Hans Hillen <hans.hillen@gmail.com> | 2011-04-22 23:14:04 +0200 |
---|---|---|
committer | Hans Hillen <hans.hillen@gmail.com> | 2011-04-22 23:14:04 +0200 |
commit | 84f918ae44ed6002d67f568ecffbb262f1e9e115 (patch) | |
tree | 1c6818a178a0df155973358a1d329b6475d898e3 /ui/jquery.ui.menu.js | |
parent | 42e11d8e41253571d67a7e1a62caa9376771c292 (diff) | |
download | jquery-ui-84f918ae44ed6002d67f568ecffbb262f1e9e115.tar.gz jquery-ui-84f918ae44ed6002d67f568ecffbb262f1e9e115.zip |
Fix collapsing submenus issue
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index f9ad84fda..8738f5c27 100644 --- a/ui/jquery.ui.menu.js +++ b/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"); }, |