From d9618ca882b27714c563702c99ee9c9f6e36cde8 Mon Sep 17 00:00:00 2001 From: Dominic <165644294+dominictb@users.noreply.github.com> Date: Thu, 29 Aug 2024 13:54:55 +0700 Subject: [PATCH] chore: update comments Co-authored-by: Puneet Lath --- src/components/Form/FormProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Form/FormProvider.tsx b/src/components/Form/FormProvider.tsx index 08e450ef54d9..48fea78da0dc 100644 --- a/src/components/Form/FormProvider.tsx +++ b/src/components/Form/FormProvider.tsx @@ -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(