From: jzaefferer Date: Thu, 17 Mar 2011 14:47:56 +0000 (+0100) Subject: Menubar: Don't close active menu on mouseenter of associated button X-Git-Tag: 1.9m5~202 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0f7afd16037940df969af9f1f3d5ffe73bcff5b;p=jquery-ui.git Menubar: Don't close active menu on mouseenter of associated button --- diff --git a/tests/visual/menu/menubar.js b/tests/visual/menu/menubar.js index 40ac2819d..6c8173cd9 100644 --- a/tests/visual/menu/menubar.js +++ b/tests/visual/menu/menubar.js @@ -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; }