From bf1203498370a322280ac2fad622b2d51d1d0fe9 Mon Sep 17 00:00:00 2001 From: capdiem Date: Tue, 22 Oct 2024 11:39:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(Treeview):=20select=20state?= =?UTF-8?q?=20may=20be=20incorrect=20(#2197)?= 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); } }