diff --git a/src/BootstrapBlazor/Components/BaseComponents/TooltipComponentBase.cs b/src/BootstrapBlazor/Components/BaseComponents/TooltipComponentBase.cs
index 06572bf27d7d291befb7fc729b0a86ad9f7ed193..b00f068747f5db170d2a620806e56a231514ca83 100644
--- a/src/BootstrapBlazor/Components/BaseComponents/TooltipComponentBase.cs
+++ b/src/BootstrapBlazor/Components/BaseComponents/TooltipComponentBase.cs
@@ -17,6 +17,8 @@ namespace BootstrapBlazor.Components
///
public ITooltip? Tooltip { get; set; }
+ private bool IsInited { get; set; }
+
///
/// OnAfterRenderAsync
///
@@ -36,6 +38,7 @@ namespace BootstrapBlazor.Components
{
await ShowPopover();
}
+ IsInited = true;
}
}
@@ -115,7 +118,7 @@ namespace BootstrapBlazor.Components
///
protected virtual async ValueTask DisposeAsyncCore(bool disposing)
{
- if (disposing && Tooltip != null)
+ if (disposing && Tooltip != null && IsInited)
{
var id = RetrieveId();
if (!string.IsNullOrEmpty(id))