Skip to content

Commit 39ca0d2

Browse files
committed
Catch initialValue before returning it
1 parent 369817d commit 39ca0d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-form-renderer/src/files/use-field-api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const createFieldProps = (name, formOptions) => {
5656
};
5757
};
5858

59-
const useFieldApi = ({ name, initializeOnMount, component, render, validate, resolveProps, ...props }) => {
59+
const useFieldApi = ({ name, component, render, validate, resolveProps, ...props }) => {
6060
const { validatorMapper, formOptions } = useContext(RendererContext);
6161

6262
const { validate: resolvePropsValidate, ...resolvedProps } = resolveProps
@@ -126,6 +126,7 @@ const useFieldApi = ({ name, initializeOnMount, component, render, validate, res
126126
isEqual: _isEqual,
127127
validate: _validate,
128128
type: _type,
129+
initializeOnMount: _initializeOnMount,
129130
...cleanProps
130131
} = enhancedProps;
131132

0 commit comments

Comments
 (0)