!2767 fix(#I56TZX ): update the Result to Close when return false in OnClosing callback

* fix: 修复关闭弹窗拦截后更正状态逻辑
* 修复OnClosing返回值不对的问题
This commit is contained in:
j4587698 2022-05-11 06:40:19 +00:00 committed by Argo
parent 70c175f588
commit 2c40ca7d7c

View File

@ -179,6 +179,10 @@ public static class DialogServiceExtensions
await option.Dialog.Close();
option.ReturnTask.SetResult(result);
}
else
{
result = DialogResult.Close;
}
};
await service.Show(option, dialog);