Skip to content

Commit

Permalink
Fixes tab changed event
Browse files Browse the repository at this point in the history
  • Loading branch information
jbomhold3 committed Nov 28, 2024
1 parent ab6f5b3 commit 81a12a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BlazorStrap/Shared/Components/Common/BSNavBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<BSNavItemBase>? ChildHandler;
Expand Down

0 comments on commit 81a12a7

Please sign in to comment.