Does anybody know how to add an on change event to an inputRadio?
I know you can do the following
<input type="radio" @onchange="ChangeFunction"/>
and this will hit the ChangeFunction()
however if I do the following
<InputRadioGroup @bind-Value="@i.LeaveRequest.DayTime">
<label>Full Day</label>
<InputRadio Value="@FullDay" class="checkbox-P" @onchange="ChangeFunction"/>
</InputRadioGroup>
it never hits the function.
I've also tried adding @onchange="ChangeFunction"
to the InputRadioGroup
line however neither seem to hit the function.
Anyone got any idea how to do this?