Skip to content

Commit

Permalink
Make sure onFocus uses callbackRegenValues
Browse files Browse the repository at this point in the history
  • Loading branch information
kylesuss committed Nov 20, 2020
1 parent e662c34 commit dc8f4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FormErrorState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const FormErrorState: React.FunctionComponent<FormErrorStateProps> = ({
callbackRegenValues
);

const onFocus = useCallback((id: string) => setFocusedFieldId(id), []);
const onFocus = useCallback((id: string) => setFocusedFieldId(id), callbackRegenValues);

const onBlur = useCallback((id: string) => {
!blurredFieldIds.has(id) && setBlurredFieldIds(blurredFieldIds.add(id));
Expand Down

0 comments on commit dc8f4e7

Please sign in to comment.