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

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

I need to be able to run a function after a selection in made in a @code { private string myVar; public string MyProperty { get { return myVar; } set { myVar = value; SomeMethod(); } } private void SomeMethod() { //Do something } }

提交回复
热议问题