diff options
author | Scott González <scott.gonzalez@gmail.com> | 2014-01-20 16:13:55 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2014-01-20 16:20:11 -0500 |
commit | 2ef1b16e4d3aa8766084e50f4a1d806c434e7e43 (patch) | |
tree | 4764e734127d6e36e1d615bf1363090532814de1 /ui | |
parent | 0bb807bb42af87bf4c6dd4d71808b12c08d316e7 (diff) | |
download | jquery-ui-2ef1b16e4d3aa8766084e50f4a1d806c434e7e43.tar.gz jquery-ui-2ef1b16e4d3aa8766084e50f4a1d806c434e7e43.zip |
Autocomplete: Fall back to .ui-front searching for empty jQuery objects
Fixes #9755
Diffstat (limited to 'ui')
-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 77024afa0..ca2458ea6 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -339,7 +339,7 @@ $.widget( "ui.autocomplete", { this.document.find( element ).eq( 0 ); } - if ( !element ) { + if ( !element || !element[ 0 ] ) { element = this.element.closest( ".ui-front" ); } |