Skip to content

Commit

Permalink
Menu: Ignore clicks that don't occur on the anchor tag within a valid…
Browse files Browse the repository at this point in the history
… menu item.


Fixes #5376 - Menu plugin fires select when border is clicked.
  • Loading branch information
scottgonzalez committed Mar 24, 2010
1 parent 467b6f9 commit f2873b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.autocomplete.js
Expand Up @@ -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
Expand Down

0 comments on commit f2873b6

Please sign in to comment.