diff --git a/bootstrap-tagautocomplete.js b/bootstrap-tagautocomplete.js index 1b44645..f52ce59 100644 --- a/bootstrap-tagautocomplete.js +++ b/bootstrap-tagautocomplete.js @@ -29,6 +29,7 @@ $.fn.typeahead.Constructor.call(this, element, options) this.after = this.options.after || this.after this.show = this.options.show || this.show + this.appendMenuTo = this.options.appendMenuTo || 'body'; } /* NOTE: TAGAUTOCOMPLETE EXTENDS BOOTSTRAP-TYPEAHEAD.js @@ -67,7 +68,7 @@ var height = this.$element[0].offsetHeight; this.$menu - .appendTo('body') + .appendTo(this.appendMenuTo) .show() .css({ position: "absolute",