diff options
author | kborchers <kris.borchers@gmail.com> | 2012-04-19 23:49:33 -0500 |
---|---|---|
committer | kborchers <kris.borchers@gmail.com> | 2012-04-19 23:49:33 -0500 |
commit | 00306d6bbdf6c12ae1499ec090ef62dfd1a59ec5 (patch) | |
tree | 6bca3fec440b22fb1abd6fc1abe44d24a8155824 | |
parent | 6150abae49f77a3b2f67c39a3c60a06792b4de8f (diff) | |
download | jquery-ui-00306d6bbdf6c12ae1499ec090ef62dfd1a59ec5.tar.gz jquery-ui-00306d6bbdf6c12ae1499ec090ef62dfd1a59ec5.zip |
Menu: Bind to mouseenter instead of mouseover to avoid use of stopImmediatePropagation
-rw-r--r-- | ui/jquery.ui.menu.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index abc759f1a..bcefd5822 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -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 |