mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu: Bind to mouseenter instead of mouseover to avoid use of stopImmediatePropagation
This commit is contained in:
parent
6150abae49
commit
00306d6bbd
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 ) {
|
"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
|
||||||
|
Loading…
Reference in New Issue
Block a user