From 4bc3a3f17225acfe2034aa641ae4dbc744dd6081 Mon Sep 17 00:00:00 2001 From: capdiem Date: Tue, 22 Oct 2024 11:26:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(Treeview):=20select=20state?= =?UTF-8?q?=20may=20be=20incorrect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Masa.Blazor/Components/Treeview/MTreeview.razor.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Masa.Blazor/Components/Treeview/MTreeview.razor.cs b/src/Masa.Blazor/Components/Treeview/MTreeview.razor.cs index a297b89d55..c0716ec556 100644 --- a/src/Masa.Blazor/Components/Treeview/MTreeview.razor.cs +++ b/src/Masa.Blazor/Components/Treeview/MTreeview.razor.cs @@ -478,6 +478,7 @@ private void UpdateChildrenSelected(IEnumerable? children, bool isSelected { //control by parent nodeState.IsSelected = isSelected; + nodeState.IsIndeterminate = false; UpdateChildrenSelected(nodeState.Children, isSelected); } }