1<Field name={name} validate={validate}>
2 {({input, meta}) => {
3 return (
4 <input
5 {...input}
6 {...rest}
7 onChange={(e) => {
8 input.onChange(e); //final-form's onChange
9 if (onChange) { //props.onChange
10 onChange(e);
11 }
12 }}
13 />
14 )}}
15 </Field>