From c932803a29deffe06220e1b428bf2ebbfc493fb4 Mon Sep 17 00:00:00 2001 From: zhuluyuan Date: Tue, 5 Mar 2024 18:21:24 +0800 Subject: [PATCH] feat(TreeView):async child nodes will automatically synchronize the selected status of the parent node --- src/BootstrapBlazor/Misc/ExpandableNodeCache.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/BootstrapBlazor/Misc/ExpandableNodeCache.cs b/src/BootstrapBlazor/Misc/ExpandableNodeCache.cs index 497bb0065..111c9e422 100644 --- a/src/BootstrapBlazor/Misc/ExpandableNodeCache.cs +++ b/src/BootstrapBlazor/Misc/ExpandableNodeCache.cs @@ -62,10 +62,6 @@ public class ExpandableNodeCache(Func comparer foreach (var n in node.Items) { n.Parent = node; - if (checkNode != null && n is ICheckableNode cn) - { - cn.CheckedState = checkNode.CheckedState == CheckboxState.Checked ? CheckboxState.Checked : CheckboxState.UnChecked; - } } } } -- Gitee