-
-
Notifications
You must be signed in to change notification settings - Fork 364
Closed
Description
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
@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 workingSomething isn't working