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.
Fix
1 parent 2d6080d commit 7b8f131Copy full SHA for 7b8f131
blazorbootstrap/Components/Toasts/Toasts.razor.cs
@@ -69,10 +69,11 @@ private async Task OnToastShownAsync(ToastEventArgs args)
69
foreach (var message in deleteMessages)
70
{
71
if (message is not null)
72
+ {
73
Messages.Remove(message);
-
74
- if (string.IsNullOrWhiteSpace(message!.ElementId))
75
- await JSRuntime.InvokeVoidAsync("window.blazorBootstrap.toasts.hide", message.ElementId);
+ if (!string.IsNullOrWhiteSpace(message.ElementId))
+ await JSRuntime.InvokeVoidAsync("window.blazorBootstrap.toasts.hide", message.ElementId);
76
+ }
77
}
78
79
0 commit comments