From: Jörn Zaefferer Date: Mon, 3 Dec 2012 23:49:37 +0000 (+0100) Subject: Menu: Remove display property on hidden submenus instead of setting display:block... X-Git-Tag: 1.10.0-beta.1~53 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=53b940fa27fc50b4663eef77249a9afce4129240;p=jquery-ui.git Menu: Remove display property on hidden submenus instead of setting display:block. Surfaced by domEqual now checking for style property (see d687a1b). --- 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" )