Skip to content

Commit

Permalink
Menu: Bind to mouseenter instead of mouseover to avoid use of stopImm…
Browse files Browse the repository at this point in the history
…ediatePropagation
  • Loading branch information
kborchers committed Apr 20, 2012
1 parent 6150aba commit 00306d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/jquery.ui.menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00306d6

Please sign in to comment.