ReactJS: How to wrap react-select in redux-form field?

后端 未结 5 1079
难免孤独
难免孤独 2021-02-13 02:57

I am working on react-select library and facing some issues, I am using redux-form library and importing component from it

5条回答
  •  自闭症患者
    2021-02-13 03:34

    When using react-select with redux-form, you'll need to change the default behavior of onChange and onBlur method and call redux-form's onChange and onBlur method respectively.

    So, Try this:

    const RenderSelectInput = ({input, options, name, id}) => (
        
                            
        
    提交评论

提交回复
热议问题