]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Bind to mouseenter instead of mouseover to avoid use of stopImmediatePropagation
authorkborchers <kris.borchers@gmail.com>
Fri, 20 Apr 2012 04:49:33 +0000 (23:49 -0500)
committerkborchers <kris.borchers@gmail.com>
Fri, 20 Apr 2012 04:49:33 +0000 (23:49 -0500)
ui/jquery.ui.menu.js

index abc759f1a1698b3ad3fe9c2212a6729d70869101..bcefd582294e4c577b1fe9e5a688fb034c24823a 100644 (file)
@@ -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