]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Ignore clicks that don't occur on the anchor tag within a valid menu item.
authorScott González <scott.gonzalez@gmail.com>
Wed, 24 Mar 2010 14:15:30 +0000 (07:15 -0700)
committerScott González <scott.gonzalez@gmail.com>
Wed, 24 Mar 2010 14:15:30 +0000 (07:15 -0700)
Fixes #5376 - Menu plugin fires select when border is clicked.

ui/jquery.ui.autocomplete.js

index fab7a6287a2c99cedee6a638c152067eabefc285..83a8cf7a4194cff32a2442532b76f6a5fa55c7fb 100644 (file)
@@ -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