diff options
Diffstat (limited to 'tests/visual/menu')
-rw-r--r-- | tests/visual/menu/menubar.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |