From 97e7544d332af9651c400af6038527c6ac9832a5 Mon Sep 17 00:00:00 2001 From: Summer Date: Fri, 6 Oct 2023 12:30:41 +0800 Subject: [PATCH] fix: close dialog should remove dom (#3963) --- packages/element/src/form-dialog/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/element/src/form-dialog/index.ts b/packages/element/src/form-dialog/index.ts index 13d104b2471..49f37254ac9 100644 --- a/packages/element/src/form-dialog/index.ts +++ b/packages/element/src/form-dialog/index.ts @@ -308,6 +308,7 @@ export function FormDialog( parent: getProtalContext(id as string | symbol), }) env.instance.$mount(env.root) + env.root = env.instance.$el } env.instance.visible = visible