]> source.dussan.org Git - jquery-ui.git/commitdiff
Menubar: Don't close active menu on mouseenter of associated button
authorjzaefferer <joern.zaefferer@gmail.com>
Thu, 17 Mar 2011 14:47:56 +0000 (15:47 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Thu, 17 Mar 2011 14:47:56 +0000 (15:47 +0100)
tests/visual/menu/menubar.js

index 40ac2819d8d0092131398b80c757b642f559a741..6c8173cd9d461e1f6892f7a629d98b51c4db3b53 100644 (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;
                                }