Skip to content

Commit 967f46f

Browse files
committed
refactor: 增加 OnClickTitleBarCallback 释放逻辑
1 parent 2e4a327 commit 967f46f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/components/BootstrapBlazor.DockView/Components/DockViewComponent.razor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ protected override void Dispose(bool disposing)
200200
{
201201
base.Dispose(disposing);
202202

203+
if (OnClickTitleBarCallback != null)
204+
{
205+
OnClickTitleBarCallback = null;
206+
}
207+
203208
DockView.RemoveComponentState(Key);
204209
}
205210
}

0 commit comments

Comments
 (0)