From 40bb56976fdd839292f59c1eaa47889347ef277e Mon Sep 17 00:00:00 2001 From: Saleh Yusefnejad Date: Sat, 19 Oct 2024 15:28:08 +0330 Subject: [PATCH] feat(blazorui): add missing awaits in calling event callbacks in BitDialog #8853 (#8955) --- .../Components/Surfaces/Dialog/BitDialog.razor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Dialog/BitDialog.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Dialog/BitDialog.razor.cs index 362c536e43..cd1d4489e1 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Dialog/BitDialog.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Dialog/BitDialog.razor.cs @@ -260,7 +260,7 @@ private async Task HandleOnOverlayClick(MouseEventArgs e) private async Task HandleOnCloseClick(MouseEventArgs e) { - _ = OnClose.InvokeAsync(e); + await OnClose.InvokeAsync(e); await DismissDialog(e); } @@ -272,7 +272,7 @@ private async Task HandleOnCancelClick(MouseEventArgs e) _tcs?.SetResult(Result); _tcs = null; - _ = OnCancel.InvokeAsync(e); + await OnCancel.InvokeAsync(e); await DismissDialog(e); } @@ -284,7 +284,7 @@ private async Task HandleOnOkClick(MouseEventArgs e) _tcs?.SetResult(Result); _tcs = null; - _ = OnOk.InvokeAsync(e); + await OnOk.InvokeAsync(e); await DismissDialog(e); }