Skip to content
Permalink
Browse files

Menu: Ignore clicks that don't occur on the anchor tag within a valid…

… menu item.


Fixes #5376 - Menu plugin fires select when border is clicked.
  • Loading branch information
scottgonzalez committed Mar 24, 2010
1 parent 467b6f9 commit f2873b6ebf427edd013eaef37adf5cbd4c06a1cf
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.autocomplete.js
@@ -335,7 +335,7 @@ $.widget("ui.menu", {
"aria-activedescendant": "ui-active-menuitem"
})
.click(function( event ) {
if ( !$( event.target ).closest( ".ui-menu-item" ).length ) {
if ( !$( event.target ).closest( ".ui-menu-item a" ).length ) {
return;
}
// temporary

0 comments on commit f2873b6

Please sign in to comment.
You can’t perform that action at this time.