Skip to content

Commit

Permalink
🐛 fix(Treeview): select state may be incorrect (#2197)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored Oct 22, 2024
1 parent 1478f0a commit bf12034
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Masa.Blazor/Components/Treeview/MTreeview.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ private void UpdateChildrenSelected(IEnumerable<TKey>? children, bool isSelected
{
//control by parent
nodeState.IsSelected = isSelected;
nodeState.IsIndeterminate = false;
UpdateChildrenSelected(nodeState.Children, isSelected);
}
}
Expand Down

0 comments on commit bf12034

Please sign in to comment.