Want to change Redux-Form Field value programmatically? You can have the onChange logic in this.handleSelectChange({ value, type: input.name }) and use change action from redux-form
1 2 3 4 5 6 7 8 | handleSelectChange = (value, type) => { if(type === "site") { this.props.change('net', "newValue"); } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({change}, dispatch); } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.