Skip to content

Commit aa05861

Browse files
committed
Merge branch 'master' of git@github.com:jquery/jquery-ui
2 parents 062f034 + c61bd8e commit aa05861

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/jquery.ui.autocomplete.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ $.widget("ui.menu", {
335335
"aria-activedescendant": "ui-active-menuitem"
336336
})
337337
.click(function(e) {
338+
if ( !$( e.target ).closest( ".ui-menu-item" ).length ) {
339+
return;
340+
}
338341
// temporary
339342
e.preventDefault();
340343
self.select();

0 commit comments

Comments
 (0)