From 80d6d358f235d89ff541bf3d1885a6708c463774 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Thu, 17 Mar 2011 15:44:09 +0100 Subject: [PATCH] Menubar: on a single-button menubar, ignore reopening the same menu --- tests/visual/menu/menubar.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/visual/menu/menubar.js b/tests/visual/menu/menubar.js index 3f4dba723..40ac2819d 100644 --- a/tests/visual/menu/menubar.js +++ b/tests/visual/menu/menubar.js @@ -127,6 +127,10 @@ $.widget("ui.menubar", { }, _open: function(event, menu) { + // on a single-button menubar, ignore reopening the same menu + if (this.active && this.active[0] == menu[0]) { + return; + } // almost the same as _close above, but don't remove tabIndex if (this.active) { this.active.menu("closeAll").hide(); -- 2.39.5