Skip to content

Commit 8cd0173

Browse files
authored
Merge pull request #433 from data-driven-forms/remove-clear-on-umnout-from-props
fix(rendrer): remove clearOnUnmount from fieldApi clean props.
2 parents 998a11a + 7958931 commit 8cd0173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

52-
const { initialValue, ...cleanProps } = props;
52+
const { initialValue, clearOnUnmount, ...cleanProps } = props;
5353

5454
/**
5555
* construct component props necessary that would live in field provider

0 commit comments

Comments
 (0)