fix(components): [el-popper] onVisibilityChange (#4907)

This commit is contained in:
SongWuKong 2021-12-21 14:03:51 +08:00 committed by GitHub
parent fa751a6ae0
commit 8f57bf610e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,7 +201,11 @@ export default function (
function onVisibilityChange(toState: boolean) { function onVisibilityChange(toState: boolean) {
if (toState) { if (toState) {
popperStyle.value.zIndex = PopupManager.nextZIndex() popperStyle.value.zIndex = PopupManager.nextZIndex()
initializePopper() if (popperInstance) {
popperInstance.update()
} else {
initializePopper()
}
} }
} }