mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2025-02-03 04:18:26 +00:00
Default appendTo container to "body". Fixes #600
This commit is contained in:
parent
5a15becb22
commit
cadd05fae2
@ -91,7 +91,7 @@
|
||||
Autocomplete.defaults = {
|
||||
ajaxSettings: {},
|
||||
autoSelectFirst: false,
|
||||
appendTo: document.body,
|
||||
appendTo: 'body',
|
||||
serviceUrl: null,
|
||||
lookup: null,
|
||||
onSelect: null,
|
||||
@ -174,7 +174,7 @@
|
||||
|
||||
container = $(that.suggestionsContainer);
|
||||
|
||||
container.appendTo(options.appendTo);
|
||||
container.appendTo(options.appendTo || 'body');
|
||||
|
||||
// Only set width if it was provided:
|
||||
if (options.width !== 'auto') {
|
||||
@ -250,7 +250,7 @@
|
||||
var that = this,
|
||||
options = that.options;
|
||||
|
||||
$.extend(options, suppliedOptions);
|
||||
this.options = $.extend({}, options, suppliedOptions);
|
||||
|
||||
that.isLocal = $.isArray(options.lookup);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user