This commit is contained in:
cookfront
2017-03-08 19:48:27 +08:00
parent 020b196556
commit 6376b0b1ab
3 changed files with 10 additions and 59 deletions

View File

@@ -81,13 +81,9 @@ const PopupManager = {
addClass(modalDom, 'zan-modal');
if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
dom.parentNode.appendChild(modalDom);
} else {
document.body.appendChild(modalDom);
}
document.body.appendChild(modalDom);
if (zIndex) {
if (zIndex && !hasModal) {
modalDom.style.zIndex = zIndex;
}
modalDom.style.display = '';