Skip to content

Commit 00306d6

Browse files
committed
Menu: Bind to mouseenter instead of mouseover to avoid use of stopImmediatePropagation
1 parent 6150aba commit 00306d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/jquery.ui.menu.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ $.widget( "ui.menu", {
8787
}
8888
}
8989
},
90-
"mouseover .ui-menu-item": function( event ) {
91-
event.stopImmediatePropagation();
90+
"mouseenter .ui-menu-item": function( event ) {
9291
var target = $( event.currentTarget );
9392
// Remove ui-state-active class from siblings of the newly focused menu item
9493
// to avoid a jump caused by adjacent elements both having a class with a border

0 commit comments

Comments
 (0)