I need to be able to run a function after a selection in made in a . The issue is I\'m also binding with @bind and I get a error when I try to use @o
@bind
is essentially equivalent to the having both value
and @onchange
, e.g.:
Is equivalent to:
CurrentValue = e.Value.ToString())" />
Since you've already defined @onchange
, instead of also adding @bind
, just add value
to prevent the clash:
Source: https://docs.microsoft.com/en-us/aspnet/core/blazor/components/data-binding?view=aspnetcore-3.1