Skip to content

Commit

Permalink
Cleanup fn
Browse files Browse the repository at this point in the history
  • Loading branch information
andyrichardson committed Jul 30, 2020
1 parent da64764 commit 8610486
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/useField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ export const useField = <T = any>({
});
}, [validate, validateOnBlur, validateOnChange, validateOnUpdate, name]);

const onBlur = useCallback(() => {
blurField({ name });
}, [blurField]);
const onBlur = useCallback(() => blurField({ name }), [blurField]);

const onChange = useCallback<UseFieldProps['onChange']>(
(e) => {
Expand Down

0 comments on commit 8610486

Please sign in to comment.