Skip to content

Commit

Permalink
Menubar: Don't close active menu on mouseenter of associated button
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Mar 17, 2011
1 parent 80d6d35 commit c0f7afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/visual/menu/menubar.js
Expand Up @@ -56,7 +56,7 @@ $.widget("ui.menubar", {
} }
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
if (menu.is(":visible") && self.active && self.active[0] == menu[0]) { if (event.type == "click" && menu.is(":visible") && self.active && self.active[0] == menu[0]) {
self._close(); self._close();
return; return;
} }
Expand Down

0 comments on commit c0f7afd

Please sign in to comment.