diff --git a/src/window.js b/src/window.js index 0739ca53..a8533ffb 100644 --- a/src/window.js +++ b/src/window.js @@ -492,12 +492,13 @@ export default class Window extends EventEmitter { this.clampToViewport(false); } + this.setNextZindex(true); + this.core.$contents.appendChild(this.$element); renderCallback(this, callback); this.rendered = true; - this.setNextZindex(true); setTimeout(() => { this.emit('render', this);