When I add a ValidatorForm component(react-material-ui-form-validator), I can type into the input but when I input data and submit but state and other properties does not update ,
I checked the console, onSubmit is not working
<ValidatorForm ref="form"
onSubmit={() => console.log('this is submit')}>
<ValidatorForm ref="form"
onSubmit={this.addNewColor}>
both of code does not working...
how can i fix the code? Has ValidatorForm issue? or my code is wrong?
First try event.preventDefault() in your handle submit or You can also call handle submit when "submit" button is pressed.