Skip to content

Commit

Permalink
chore: update comments
Browse files Browse the repository at this point in the history
Co-authored-by: Puneet Lath <[email protected]>
  • Loading branch information
dominictb and puneetlath authored Aug 29, 2024
1 parent 184e5a1 commit d9618ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Form/FormProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function FormProvider(
}, [enabledWhenOffline, formState?.isLoading, inputValues, network?.isOffline, onSubmit, onValidate, shouldTrimValues]);

// Keep track of the focus state of the current screen.
// This is used to prevent validating the form on blur in case the screen is not focused.
// This is used to prevent validating the form on blur before it has been interacted with.
const isFocusedRef = useRef(true);

useFocusEffect(
Expand Down

0 comments on commit d9618ca

Please sign in to comment.