mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Menu: Bind to mouseenter instead of mouseover to avoid use of stopImmediatePropagation
This commit is contained in:
3
ui/jquery.ui.menu.js
vendored
3
ui/jquery.ui.menu.js
vendored
@@ -87,8 +87,7 @@ $.widget( "ui.menu", {
|
||||
}
|
||||
}
|
||||
},
|
||||
"mouseover .ui-menu-item": function( event ) {
|
||||
event.stopImmediatePropagation();
|
||||
"mouseenter .ui-menu-item": function( event ) {
|
||||
var target = $( event.currentTarget );
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user