From 81a12a7e1466cb7afb0a4c562fa0a2efb7045d70 Mon Sep 17 00:00:00 2001 From: John Bomhold Date: Thu, 28 Nov 2024 05:21:09 -1000 Subject: [PATCH] Fixes tab changed event --- src/BlazorStrap/Shared/Components/Common/BSNavBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BlazorStrap/Shared/Components/Common/BSNavBase.cs b/src/BlazorStrap/Shared/Components/Common/BSNavBase.cs index 3a42f6b3..8605227c 100644 --- a/src/BlazorStrap/Shared/Components/Common/BSNavBase.cs +++ b/src/BlazorStrap/Shared/Components/Common/BSNavBase.cs @@ -73,7 +73,7 @@ public bool SetFirstChild(BSNavItemBase sender) if (OnTabChange.HasDelegate) { - _ = InvokeAsync(async () => await OnTabChange.InvokeAsync(ActiveChild.TabContent)); + OnTabChange.InvokeAsync(ActiveChild.TabContent); } return true; @@ -89,7 +89,7 @@ public void Invoke(BSNavItemBase sender) ChildHandler?.Invoke(sender); if (OnTabChange.HasDelegate) - _ = InvokeAsync(async () => await OnTabChange.InvokeAsync(ActiveChild.TabContent)); + OnTabChange.InvokeAsync(ActiveChild.TabContent); } public event Action? ChildHandler;