Popper: update zIndex after show again (#9339)

pull/9343/head
FuryBean 2018-01-18 14:23:00 +08:00 committed by 杨奕
parent 3fffdd1534
commit aaf6e7e815
1 changed files with 9 additions and 1 deletions

View File

@ -109,7 +109,15 @@ export default {
}, },
updatePopper() { updatePopper() {
this.popperJS ? this.popperJS.update() : this.createPopper(); const popperJS = this.popperJS;
if (popperJS) {
popperJS.update();
if (popperJS._popper) {
popperJS._popper.style.zIndex = PopupManager.nextZIndex();
}
} else {
this.createPopper();
}
}, },
doDestroy() { doDestroy() {