mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
fix(components): [el-popper] onVisibilityChange (#4907)
This commit is contained in:
parent
fa751a6ae0
commit
8f57bf610e
@ -201,7 +201,11 @@ export default function (
|
||||
function onVisibilityChange(toState: boolean) {
|
||||
if (toState) {
|
||||
popperStyle.value.zIndex = PopupManager.nextZIndex()
|
||||
initializePopper()
|
||||
if (popperInstance) {
|
||||
popperInstance.update()
|
||||
} else {
|
||||
initializePopper()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user