Skip to content

Commit

Permalink
[TreeView] Fix the first item never selected (#2414)
Browse files Browse the repository at this point in the history
* Fix the first element not clickable

* Remove extra spaces
  • Loading branch information
dvoituron authored Jul 19, 2024
1 parent 42e4823 commit 3af0867
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Core/Components/TreeView/FluentTreeItem.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ internal static RenderFragment GetFluentTreeItem(FluentTreeView owner, ITreeView
builder.AddAttribute(i++, "Disabled", item.Disabled);
builder.AddAttribute(i++, "IconCollapsed", item.IconCollapsed);
builder.AddAttribute(i++, "IconExpanded", item.IconExpanded);
builder.SetKey(item.Id);

if (owner.ItemTemplate != null)
{
Expand Down

0 comments on commit 3af0867

Please sign in to comment.