We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79fce04 commit 0af2b3aCopy full SHA for 0af2b3a
src/BootstrapBlazor/Components/Dialog/Dialog.razor.cs
@@ -55,7 +55,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
55
}
56
57
58
- private Task Show(DialogOption option)
+ private async Task Show(DialogOption option)
59
{
60
_onShownAsync = async () =>
61
@@ -158,8 +158,7 @@ private Task Show(DialogOption option)
158
159
// Add ModalDialog to the container
160
DialogParameters.Add(parameters, (_isKeyboard, _isBackdrop));
161
- StateHasChanged();
162
- return Task.CompletedTask;
+ await InvokeAsync(StateHasChanged);
163
164
165
private static RenderFragment RenderDialog(int index, Dictionary<string, object> parameter) => builder =>
0 commit comments