2
0
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:
Tomas Kirda 2017-04-03 16:58:02 -05:00
parent 5a15becb22
commit cadd05fae2

View File

@ -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);