Skip to content

Set bind(ed) object before onkeyup fires #6052

@cyberjaws

Description

@cyberjaws

In this case when the operator presses 'a' in the input form:

<input type=text bind="@SomeString" onkeyup="@Validate" />
@functions
{
   private string SomeString;
   private void Validate()
   {
      if(SomeString == "a") { // do something }
      StateHasChanged();
   }
}

SomeString is still "". It would be nice to have seen SomeString as "a".

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions