Skip to content

Commit 4f42880

Browse files
committed
refactor: 精简代码
1 parent a15ba20 commit 4f42880

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,7 @@ private void OnChange(ChangeEventArgs args)
236236
CurrentValueAsString = v;
237237

238238
// 选中节点更改为当前值
239-
if(_tv != null)
240-
{
241-
_tv.SetActiveItem(Value);
242-
}
239+
_tv.SetActiveItem(Value);
243240
}
244241
}
245242

0 commit comments

Comments
 (0)