From 5d5624b696d4a07e8e8b2bda2dfb37d4c60ba2c8 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 10 Aug 2024 12:30:18 +0800 Subject: [PATCH] fix(AutoFill): support enter when set OnCustomeFilter callback (#4015) --- src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs b/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs index dc347f42b..894eb622b 100644 --- a/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs +++ b/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs @@ -244,7 +244,7 @@ public partial class AutoFill } else if (key == "Enter") { - ActiveSelectedItem ??= FindItem().FirstOrDefault(); + ActiveSelectedItem ??= _filterItems.FirstOrDefault(); if (ActiveSelectedItem != null) { _inputString = OnGetDisplayText(ActiveSelectedItem);