Menu: Bind to mouseenter instead of mouseover to avoid use of stopImmediatePropagation

This commit is contained in:
kborchers 2012-04-19 23:49:33 -05:00
parent 6150abae49
commit 00306d6bbd

View File

@ -87,8 +87,7 @@ $.widget( "ui.menu", {
} }
} }
}, },
"mouseover .ui-menu-item": function( event ) { "mouseenter .ui-menu-item": function( event ) {
event.stopImmediatePropagation();
var target = $( event.currentTarget ); var target = $( event.currentTarget );
// Remove ui-state-active class from siblings of the newly focused menu item // Remove ui-state-active class from siblings of the newly focused menu item
// to avoid a jump caused by adjacent elements both having a class with a border // to avoid a jump caused by adjacent elements both having a class with a border