Menubar: Don't close active menu on mouseenter of associated button

This commit is contained in:
jzaefferer 2011-03-17 15:47:56 +01:00
parent 80d6d358f2
commit c0f7afd160

View File

@ -56,7 +56,7 @@ $.widget("ui.menubar", {
}
event.preventDefault();
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();
return;
}