Skip to content

Commit

Permalink
pass inputValues through children in FormProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
cdOut committed Nov 13, 2023
1 parent 5c46273 commit ba8a740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Form/FormProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function FormProvider({validate, formID, shouldValidateOnBlur, shouldValidateOnC
errors={errors}
enabledWhenOffline={enabledWhenOffline}
>
{children}
{_.isFunction(children) ? children({inputValues}) : children}
</FormWrapper>
</FormContext.Provider>
);
Expand Down

0 comments on commit ba8a740

Please sign in to comment.