aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-03-20 15:28:38 -0400
committerJohn Resig <jeresig@gmail.com>2010-03-20 15:28:38 -0400
commitaa05861b857f8b47c2260bfabdfa751a2d13a071 (patch)
tree77cfb5a3ed9f2395d1117225372a947a171ac317
parent062f0346e6f3c72f7e61f486eaa6d6b26fed81b8 (diff)
parentc61bd8ec67d9a863a00ae9d188993680f83186b0 (diff)
downloadjquery-ui-aa05861b857f8b47c2260bfabdfa751a2d13a071.tar.gz
jquery-ui-aa05861b857f8b47c2260bfabdfa751a2d13a071.zip
Merge branch 'master' of git@github.com:jquery/jquery-ui
-rw-r--r--ui/jquery.ui.autocomplete.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index 60ba69f89..021b330a6 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/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();