We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 349bfbf commit f2467f6Copy full SHA for f2467f6
src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs
@@ -232,6 +232,9 @@ private async Task OnClickItem(TValue val)
232
CurrentValue = val;
233
_displayText = GetDisplayText(val);
234
235
+ // 使用脚本更新 input 值
236
+ await InvokeVoidAsync("setValue", Id, _displayText);
237
+
238
if (OnSelectedItemChanged != null)
239
{
240
await OnSelectedItemChanged(val);
@@ -243,9 +246,6 @@ private async Task OnClickItem(TValue val)
243
246
}
244
247
245
248
await TriggerFilter(_displayText!);
-
- // 使用脚本更新 input 值
- await InvokeVoidAsync("setValue", Id, _displayText);
249
250
251
private string? GetDisplayText(TValue item) => OnGetDisplayText?.Invoke(item) ?? item?.ToString();
0 commit comments