Menu: Remove display property on hidden submenus instead of setting display:block. Surfaced by domEqual now checking for style property (see d687a1b).

This commit is contained in:
Jörn Zaefferer 2012-12-04 00:49:37 +01:00
parent d687a1b10d
commit 53b940fa27

View File

@ -148,7 +148,9 @@ $.widget( "ui.menu", {
.removeAttr( "aria-hidden" ) .removeAttr( "aria-hidden" )
.removeAttr( "aria-disabled" ) .removeAttr( "aria-disabled" )
.removeUniqueId() .removeUniqueId()
.show(); .css({
display: ""
});
// Destroy menu items // Destroy menu items
this.element.find( ".ui-menu-item" ) this.element.find( ".ui-menu-item" )