Skip to content

Commit b3e0c5a

Browse files
committed
Update AutoFill.razor.cs
当初始化或选择选项后更新_clientValue
1 parent bfcb69c commit b3e0c5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ protected override void OnParametersSet()
176176
LoadingIcon ??= IconTheme.GetIconByKey(ComponentIcons.LoadingIcon);
177177

178178
_displayText = GetDisplayText(Value);
179+
_clientValue = _displayText;//当选中选项或初始化传参时更新一下_clientValue
179180
Items ??= [];
180181
}
181182

0 commit comments

Comments
 (0)