Skip to content

Commit 108a3a3

Browse files
committed
feat: 更新有子集判断条件
1 parent 6b43739 commit 108a3a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Misc/ExpandableNodeCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public async Task CheckExpandAsync(TNode node, Func<TNode, Task<IEnumerable<IExp
9999
if (ExpandedNodeCache.Contains(node.Value))
100100
{
101101
// 原来是展开状态,
102-
if (node.HasChildren)
102+
if (node.HasChildren || node.Items.Any())
103103
{
104104
// 当前节点有子节点
105105
node.IsExpand = true;

0 commit comments

Comments
 (0)