mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-02 12:09:59 +08:00
!2767 fix(#I56TZX ): update the Result to Close when return false in OnClosing callback
* fix: 修复关闭弹窗拦截后更正状态逻辑 * 修复OnClosing返回值不对的问题
This commit is contained in:
parent
70c175f588
commit
2c40ca7d7c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user