From d1222f72bf2cf0b2976db91c5c498401028e94da Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 27 Jul 2024 17:46:39 +0800 Subject: [PATCH] perf(TreeView): imporve render performance of TreeView ClearCheckedItems (#3936) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: 更新 TreeView 更新逻辑 * chore: bump version 8.7.4 --- src/BootstrapBlazor/BootstrapBlazor.csproj | 2 +- src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index 40452ea80a2..f5972d82c0f 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@ - 8.7.4-beta07 + 8.7.4 diff --git a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs index 349a360dd2f..ebac71c23af 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs @@ -541,8 +541,8 @@ public void ClearCheckedItems() s.CheckedState = CheckboxState.UnChecked; TreeNodeStateCache.ToggleCheck(s); }); - StateHasChanged(); }); + StateHasChanged(); } ///