Skip to content
Permalink
Browse files

Menu: Don't trigger select if a click occurs outside of a menu item.

Fixes #5376 - Menu plugin fires select when border is clicked.
  • Loading branch information
scottgonzalez committed Mar 20, 2010
1 parent e70743c commit c61bd8ec67d9a863a00ae9d188993680f83186b0
Showing with 3 additions and 0 deletions.
  1. +3 −0 ui/jquery.ui.autocomplete.js
@@ -335,6 +335,9 @@ $.widget("ui.menu", {
"aria-activedescendant": "ui-active-menuitem"
})
.click(function(e) {
if ( !$( e.target ).closest( ".ui-menu-item" ).length ) {
return;
}
// temporary
e.preventDefault();
self.select();

0 comments on commit c61bd8e

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