onChange event not firing Blazor InputSelect

后端 未结 2 994
遥遥无期
遥遥无期 2020-12-17 01:01

I have the following Code for an InputSelect

               

        
2条回答
  •  [愿得一人]
    2020-12-17 01:12

    The request is not that old, so you may consider the following which works with EditForm (basically hook up onto another event) => at oninput eventhandler you pass The ChangeEventArgs var, and so you can get the value to process

    
                                @if (lstStocks != null)
                                    {
                                    
                                    @foreach (var stock in lstStocks)
                                        {
                                        
                                        }
                                    }
                            
    

提交回复
热议问题