how to get field value on change for FormItem in antd

前端 未结 3 1839
无人共我
无人共我 2021-02-13 16:48

I am having a hard time with antd\'s form. I have this select field in this form and I want to get the value from it onChange but somehow not getting it to work properly.

<
3条回答
  •  萌比男神i
    2021-02-13 17:05

    A quick response, and hopefully a quick solution. Rather than using onChange you may want to use onSelect/onDeselect handlers, per the documentation (https://ant.design/components/select/):

    
                            
        
    提交评论

提交回复
热议问题