diff --git a/src/tingle.js b/src/tingle.js index 6557da3..d3364f9 100644 --- a/src/tingle.js +++ b/src/tingle.js @@ -43,7 +43,7 @@ _bindEvents.call(this) // insert modal in dom - document.body.appendChild(this.modal, document.body.firstChild) + document.body.appendChild(this.modal) if (this.opts.footer) { this.addFooter()