We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1fe376 commit 3462fb7Copy full SHA for 3462fb7
1 file changed
src/makeReactNativeField.js
@@ -16,7 +16,7 @@ const makeReactNativeField = compose(
16
onBlur: () => {
17
// validate onBlur only while not submitting
18
// this prevents validating twice in succession when clicking 'done' on keyboard - first onSubmitEditing, then onBlur
19
- setFieldTouched(name, true, isSubmitting ? false : true);
+ setFieldTouched(name, true, !isSubmitting);
20
if (props.onBlur) props.onBlur();
21
}
22
}))
0 commit comments