From c0f7afd16037940df969af9f1f3d5ffe73bcff5b Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Thu, 17 Mar 2011 15:47:56 +0100 Subject: [PATCH] Menubar: Don't close active menu on mouseenter of associated button --- tests/visual/menu/menubar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5