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');