@bind="" and @oninput="" issue Blazor #17702
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
Status: Resolved
below is my HTML content
<input type="text" id="txtSearch" placeholder="Search Titles..." class="form-control" @Bind="searchTerm" @oninput="@FilterRecords" />
@code {
private string searchTerm;
public async Task FilterRecords(EventArgs args)
{
//code
}
but when I press key searchTerm property get previous values like If I press "a" it will take null, if I press "ab" it will take "a", press "abc" will take "ab" etc..
}
The text was updated successfully, but these errors were encountered: