Skip to content

Commit 7189486

Browse files
committed
refactor: 重置 SelectedItem
1 parent 40b041d commit 7189486

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ private async Task OnClearValue()
588588

589589
_lastSelectedValueString = string.Empty;
590590
CurrentValue = default;
591+
SelectedItem = null;
591592
}
592593

593594
private bool IsNullable() => !ValueType.IsValueType || NullableUnderlyingType != null;

0 commit comments

Comments
 (0)