We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a15bec commit cadd05fCopy full SHA for cadd05f
src/jquery.autocomplete.js
@@ -91,7 +91,7 @@
91
Autocomplete.defaults = {
92
ajaxSettings: {},
93
autoSelectFirst: false,
94
- appendTo: document.body,
+ appendTo: 'body',
95
serviceUrl: null,
96
lookup: null,
97
onSelect: null,
@@ -174,7 +174,7 @@
174
175
container = $(that.suggestionsContainer);
176
177
- container.appendTo(options.appendTo);
+ container.appendTo(options.appendTo || 'body');
178
179
// Only set width if it was provided:
180
if (options.width !== 'auto') {
@@ -250,7 +250,7 @@
250
var that = this,
251
options = that.options;
252
253
- $.extend(options, suppliedOptions);
+ this.options = $.extend({}, options, suppliedOptions);
254
255
that.isLocal = $.isArray(options.lookup);
256
0 commit comments