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