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