Blazor: How to use the onchange event in <select> when using @bind also?

后端 未结 6 1599
暖寄归人
暖寄归人 2021-02-12 17:33

I need to be able to run a function after a selection in made in a

Is equivalent to:


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

提交回复
热议问题