mirror of https://github.com/ElemeFE/element
Popper: update zIndex after show again (#9339)
parent
3fffdd1534
commit
aaf6e7e815
|
@ -109,7 +109,15 @@ export default {
|
|||
},
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue