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();