From 53b940fa27fc50b4663eef77249a9afce4129240 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 4 Dec 2012 00:49:37 +0100 Subject: [PATCH] Menu: Remove display property on hidden submenus instead of setting display:block. Surfaced by domEqual now checking for style property (see d687a1b). --- ui/jquery.ui.menu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 45c1ec2e4..26789594d 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -148,7 +148,9 @@ $.widget( "ui.menu", { .removeAttr( "aria-hidden" ) .removeAttr( "aria-disabled" ) .removeUniqueId() - .show(); + .css({ + display: "" + }); // Destroy menu items this.element.find( ".ui-menu-item" ) -- 2.39.5