Closed k8martian closed 5 years ago
The Select field is empty if I use make custom onChange. Anyway to fix this?
<Field name="name" label="label" component={Select} options={this.state.options} onChange={(e)=>{ formik.setFieldValue('nameValue', true); formik.handleSubmit(e); }} />
also I get this warning
Warning: Failed prop type: The prop value is marked as required in SelectInput, but its value is undefined.
value
SelectInput
undefined
i removed handleSubmit the value is now display, and setting initialValues remove the warning.
@k8martian glad you solved it! Thanks for using material-ui-formik-components.
The Select field is empty if I use make custom onChange. Anyway to fix this?
also I get this warning