Skip to content

Commit

Permalink
Fix #390 (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-rue authored Oct 8, 2023
1 parent f3254bc commit 268f288
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion blazorbootstrap/Components/Tooltip/Tooltip.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ protected override async ValueTask DisposeAsync(bool disposing)
{
if (disposing)
{
await JS.InvokeVoidAsync("window.blazorBootstrap.tooltip.dispose", ElementRef);
try {
await JS.InvokeVoidAsync("window.blazorBootstrap.tooltip.dispose", ElementRef);
}
catch (JSDisconnectedException)
{
// ignored
}
objRef?.Dispose();
}

Expand Down

0 comments on commit 268f288

Please sign in to comment.