Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Unexpected behavior for Blazor @bind-Value:after for InputDate

$
0
0

I have a few edit components inside an EditForm like this:

<EditForm Model="MyModel"><InputNumber class="form-control" @bind-Value="@_tempLong"           @bind-Value:after="CheckNumberChanged" /><InputDate class="form-control" @bind-Value="@_tempDate"           @bind-Value:after="PresentedDateChanged" /> </EditForm>

I am expecting the bind-value:after event to be called AFTER the value is changed, basically similar to OnBlur event. This works correctly for InputNumber, InputText, etc.

However, when it comes to InputDate, the event is called as soon as you start typing the first digit of a year or month or whatever. I would like to only call it once user finishes typing the date value.

How can I fix the InputDate to achieve the expected behavior? Thanks!


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>