From 5d281ea0e6cbfa4a13de54c664d33f247d82d773 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 27 Sep 2023 04:45:21 +0100 Subject: [PATCH 1/2] forward missing props to the FormWrapper in FormProvider --- src/components/Form/FormProvider.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Form/FormProvider.js b/src/components/Form/FormProvider.js index 408f8c2c2b7f..07f378fc6fed 100644 --- a/src/components/Form/FormProvider.js +++ b/src/components/Form/FormProvider.js @@ -239,6 +239,8 @@ function FormProvider({validate, shouldValidateOnBlur, shouldValidateOnChange, c onSubmit={submit} inputRefs={inputRefs} errors={errors} + enabledWhenOffline={enabledWhenOffline} + formState={formState} > {children} From a26bd9170c09b55722534e3be9dee6921e876554 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 27 Sep 2023 14:42:01 +0100 Subject: [PATCH 2/2] use formState from Onyx --- src/components/Form/FormProvider.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Form/FormProvider.js b/src/components/Form/FormProvider.js index 07f378fc6fed..90f5c22e5b3c 100644 --- a/src/components/Form/FormProvider.js +++ b/src/components/Form/FormProvider.js @@ -240,7 +240,6 @@ function FormProvider({validate, shouldValidateOnBlur, shouldValidateOnChange, c inputRefs={inputRefs} errors={errors} enabledWhenOffline={enabledWhenOffline} - formState={formState} > {children}