diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-03-24 07:15:30 -0700 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-03-24 07:15:30 -0700 |
commit | f2873b6ebf427edd013eaef37adf5cbd4c06a1cf (patch) | |
tree | 8fd19152a2aad3f5834c5ea947fbdc55bc77d6d2 /ui/jquery.ui.autocomplete.js | |
parent | 467b6f9bb606003d61aae9e77fc85f39d264d7de (diff) | |
download | jquery-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.js | 2 |
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 |