diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-12-07 11:58:58 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-12-07 11:58:58 -0500 |
commit | da17a232ca554254eabd3583805b381f6b525ec5 (patch) | |
tree | 29004625020ea375198fb4379c713eff8b7cd2ca /ui | |
parent | 1481b080121bf15ef60f30162c345f0423f3986f (diff) | |
download | jquery-ui-da17a232ca554254eabd3583805b381f6b525ec5.tar.gz jquery-ui-da17a232ca554254eabd3583805b381f6b525ec5.zip |
Autocomplete: Handle detached elements for appendTo after create.
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 c049b8569..a858b3382 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -314,7 +314,7 @@ $.widget( "ui.autocomplete", { this._initSource(); } if ( key === "appendTo" ) { - this.menu.element.appendTo( this.document.find( value || "body" )[0] ); + this.menu.element.appendTo( this._appendTo() ); } if ( key === "disabled" && value && this.xhr ) { this.xhr.abort(); |