From b635a6581560f5c01311969779e974e6caca3f54 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 28 Aug 2023 23:34:45 +1000 Subject: Fixed tab container tab duplication bug --- Pages/Component/TabPane.razor | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Pages/Component/TabPane.razor') diff --git a/Pages/Component/TabPane.razor b/Pages/Component/TabPane.razor index 483d0d6..ba4a13a 100644 --- a/Pages/Component/TabPane.razor +++ b/Pages/Component/TabPane.razor @@ -1,4 +1,6 @@ - +@implements IDisposable + + @if(Parent.ActivePane == this) { @ChildContent @@ -20,4 +22,8 @@ Parent.AddPane(this); } + + public void Dispose() { + Parent.RemovePane(this); + } } \ No newline at end of file -- cgit v1.3