diff --git a/packages/components/popper/src/use-popper/index.ts b/packages/components/popper/src/use-popper/index.ts index 07de26e7f5..ca6626363f 100644 --- a/packages/components/popper/src/use-popper/index.ts +++ b/packages/components/popper/src/use-popper/index.ts @@ -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() + } } }