I am working on react-select
library and facing some issues, I am using redux-form
library and importing
component from it
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}) => (
and use the above component like
Calling redux-form
's onBlur
method when focus is removed from the Select
field will prevent loss of value.