Skip to content

Commit 53b940f

Browse files
committed
Menu: Remove display property on hidden submenus instead of setting display:block. Surfaced by domEqual now checking for style property (see d687a1b).
1 parent d687a1b commit 53b940f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/jquery.ui.menu.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ $.widget( "ui.menu", {
148148
.removeAttr( "aria-hidden" )
149149
.removeAttr( "aria-disabled" )
150150
.removeUniqueId()
151-
.show();
151+
.css({
152+
display: ""
153+
});
152154

153155
// Destroy menu items
154156
this.element.find( ".ui-menu-item" )

0 commit comments

Comments
 (0)