mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-02 03:59:14 +08:00
fix(AutoFill): support enter when set OnCustomeFilter callback (#4015)
This commit is contained in:
parent
573e1f45b8
commit
5d5624b696
@ -244,7 +244,7 @@ public partial class AutoFill<TValue>
|
||||
}
|
||||
else if (key == "Enter")
|
||||
{
|
||||
ActiveSelectedItem ??= FindItem().FirstOrDefault();
|
||||
ActiveSelectedItem ??= _filterItems.FirstOrDefault();
|
||||
if (ActiveSelectedItem != null)
|
||||
{
|
||||
_inputString = OnGetDisplayText(ActiveSelectedItem);
|
||||
|
Loading…
Reference in New Issue
Block a user