diff --git a/src/js/drop.js b/src/js/drop.js index 92db0e0..e1a2d43 100644 --- a/src/js/drop.js +++ b/src/js/drop.js @@ -370,6 +370,11 @@ function createContext(options={}) { if (this.isOpened()) { return; } + + if (!this.drop) { + // The instance was destroyed + return; + } if (!this.drop.parentNode) { document.body.appendChild(this.drop);