What I want to do is update the variable value when the user press a key, but it only update the value on blur of the input.
The following code is not working.
<p>@increment</p>
<input
type="text"
@onchange="@((ChangeEventArgs e) =>
increment = e.Value.ToString())"
/>
@code {
string increment;
}
Using @bind and @bind-value also doesn't work.
I made a blazorfiddle with the example.
Who can I make the value of my variable to change when the a key is pressed?