From: Scott González Date: Tue, 4 Dec 2012 14:21:16 +0000 (-0500) Subject: Revert "Menu: Remove display property on hidden submenus instead of setting display... X-Git-Tag: 1.10.0-beta.1~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8072099a3ac78340b4b861d76aac082968cd1df7;p=jquery-ui.git Revert "Menu: Remove display property on hidden submenus instead of setting display:block. Surfaced by domEqual now checking for style property (see d687a1b)." This reverts commit 53b940fa27fc50b4663eef77249a9afce4129240. --- diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 26789594d..45c1ec2e4 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -148,9 +148,7 @@ $.widget( "ui.menu", { .removeAttr( "aria-hidden" ) .removeAttr( "aria-disabled" ) .removeUniqueId() - .css({ - display: "" - }); + .show(); // Destroy menu items this.element.find( ".ui-menu-item" )