mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Menu: Don't remove the icon elements on destroy since they exist in the original markup
This commit is contained in:
5
ui/jquery.ui.menu.js
vendored
5
ui/jquery.ui.menu.js
vendored
@@ -157,10 +157,7 @@ $.widget( "ui.menu", {
|
||||
.removeClass( "ui-corner-all ui-state-hover" )
|
||||
.removeAttr( "tabIndex" )
|
||||
.removeAttr( "role" )
|
||||
.removeAttr( "aria-haspopup" )
|
||||
// TODO: is this correct? Don't these exist in the original markup?
|
||||
.children( ".ui-icon" )
|
||||
.remove();
|
||||
.removeAttr( "aria-haspopup" );
|
||||
|
||||
// unbind currentEventTarget click event handler
|
||||
$( currentEventTarget ).unbind( "click.menu" );
|
||||
|
||||
Reference in New Issue
Block a user