Skip to content

Commit 89343d4

Browse files
committed
fix(renderer): remove initialValue from useFieldApi return props.
1 parent 227f50c commit 89343d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ const useFieldApi = ({ name, initializeOnMount, component, render, validate, dat
4949
});
5050
}
5151

52+
const { initialValue, ...cleanProps } = props;
53+
5254
/**
5355
* construct component props necessary that would live in field provider
5456
*/
5557
return {
56-
...props,
58+
...cleanProps,
5759
...overrideProps,
5860
...fieldProps,
5961
input: {

0 commit comments

Comments
 (0)