Enter event not close AutoComplete's dropdown

Hi! I think the AutoComplete still not perfect. On the demo page when the user selects an item via Enter the dropdown box disapear, but with version 2.15.18 in real application it does not close with Enter, just only when the user use mouse click. First I thought that my application is buggy somewhere but I created a plain new blazor wasm project with radzen and the same thing is happening with the example code like this:

@page "/"

<RadzenAutoComplete Placeholder="Select..." Data="@customers" TextProperty="CompanyName" Change="@(args => Change(args, "AutoComplete with placeholder"))"/>

@code {
    IList<Customer> customers = new List<Customer>();

    protected override void OnInitialized()
    {
        customers.Add(new Customer {CompanyName="asd"});
        customers.Add(new Customer {CompanyName="wasd"});
        customers.Add(new Customer {CompanyName="lelz"});
    }

    Dictionary<DateTime, string> events = new Dictionary<DateTime, string>();

    void Change(object value, string name)
    {
        events.Add(DateTime.Now, $"{name} value changed to {value}");
        StateHasChanged();
    }

    public class Customer
    {
        public string CompanyName { get; set; }
    }
}

Am I doing something wrong or this thing is not working properly?

1 Like

I am having this same issue.

I have the same problem too. Blazor wasm, Radzen 3.19.11

Hey @Ludozzo,

We accept pull requests!

Sorry, i'm not very used to github, but a pull request isn't when I write a fix and ask you to include it in the main branch?

If so, I have not a fix for the problem mentioned!