Skip to content

bug(AutoComplete): does not trigger OnEnterAsync event #5467

@celadaris

Description

@celadaris

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

OnEnterAsync does not trigger the associated function when pressing enter

Expected Behavior

when i press enter it should call the attached function

Interactive render mode

Interactive Server (Interactive server-side rendering (interactive SSR) using Blazor Server)

Steps To Reproduce

AutoCompleteOnEnterDemo.zip

@page "/"
@using System.Diagnostics
@attribute [TabItemOption(Text = "Index", Closable = false)]

<PageTitle>Index</PageTitle>
<h1>@numberInc</h1>

<AutoComplete OnEnterAsync="hello"></AutoComplete>
<Button Text="TestBtn" OnClick="@(() => hello("hi"))"></Button>

@code{
    int numberInc = 0;

    async Task hello(string value)
    {
        numberInc++;
        await InvokeAsync(StateHasChanged);
        Debugger.Break();
    }
}

Exceptions (if any)

No response

.NET Version

NET8.0

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions