aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.autocomplete.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-03-24 07:15:30 -0700
committerScott González <scott.gonzalez@gmail.com>2010-03-24 07:15:30 -0700
commitf2873b6ebf427edd013eaef37adf5cbd4c06a1cf (patch)
tree8fd19152a2aad3f5834c5ea947fbdc55bc77d6d2 /ui/jquery.ui.autocomplete.js
parent467b6f9bb606003d61aae9e77fc85f39d264d7de (diff)
downloadjquery-ui-f2873b6ebf427edd013eaef37adf5cbd4c06a1cf.tar.gz
jquery-ui-f2873b6ebf427edd013eaef37adf5cbd4c06a1cf.zip
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.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r--ui/jquery.ui.autocomplete.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index fab7a6287..83a8cf7a4 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/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