Skip to content

Commit 1351560

Browse files
committed
Update SelectTree.razor.cs
1 parent c42a34b commit 1351560

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/BootstrapBlazor/Components/Select/SelectTree.razor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ protected override async Task OnParametersSetAsync()
179179
// 组件未赋值 Value 通过 IsActive 设置默认值
180180
await TriggerItemChanged(s => s.IsActive);
181181
}
182+
{
183+
// 组件已赋值 Value 通过 Value 设置默认值
184+
await TriggerItemChanged(s => Equals(s.Value, Value));
185+
}
182186
}
183187

184188
/// <summary>

0 commit comments

Comments
 (0)