Skip to content

Commit 5723f8a

Browse files
committed
feat: add notify change method to tabs
1 parent ed46a77 commit 5723f8a

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/Tabs/Components/BafTabs.razor

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,10 @@
9494
public void Dispose()
9595
{
9696
_initSemaphore.Dispose();
97+
}
98+
99+
internal void NotifyStateChanged()
100+
{
101+
InvokeAsync(StateHasChanged);
97102
}
98103
}

src/Tabs/Models/BafTab.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,10 @@ public virtual Task OnAddedAsync()
3131
public virtual Task OnActivatedAsync()
3232
{
3333
return Task.CompletedTask;
34+
}
35+
36+
protected void NotifyParentStateChanged()
37+
{
38+
Parent?.NotifyStateChanged();
3439
}
3540
}

0 commit comments

Comments
 (0)