From 16f54e3d75b01597fcddf11677b5ee8af8c53de9 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 31 May 2020 20:33:07 +0800 Subject: [PATCH] fix(Popup): incorrect overlay z-index when reopened (#6429) --- src/mixins/popup/overlay.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mixins/popup/overlay.ts b/src/mixins/popup/overlay.ts index 9bf10c644..1d5d86f6a 100644 --- a/src/mixins/popup/overlay.ts +++ b/src/mixins/popup/overlay.ts @@ -51,7 +51,10 @@ export function updateOverlay(vm: any): void { } export function openOverlay(vm: any, config: OverlayConfig): void { - if (!context.find(vm)) { + const item = context.find(vm); + if (item) { + item.config = config; + } else { const overlay = mountOverlay(vm); context.stack.push({ vm, config, overlay }); }