From 4dcd95df983c2740aefced2d2518b0f991001cb7 Mon Sep 17 00:00:00 2001 From: QuentinHsu Date: Wed, 7 Aug 2024 11:02:02 +0800 Subject: [PATCH] fix(dialog): during function calls, the close button is not working properly (#1513) ref #1477 --- src/dialog/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialog/index.ts b/src/dialog/index.ts index decd3c14e..d3e16ef2f 100644 --- a/src/dialog/index.ts +++ b/src/dialog/index.ts @@ -56,7 +56,7 @@ function create(options: Partial | string): DialogInstance { }, onClose: (context: DialogCloseContext) => { callFn('onClose', context); - root.remove(); + params.visible = false; }, onClosed: () => { callFn('onClosed');