Skip to content

Commit c850f3c

Browse files
committed
fix(renderer): condition subscribe only to values
1 parent f2c50c7 commit c850f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-form-renderer/src/form-renderer/render-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ FormFieldHideWrapper.defaultProps = {
1818

1919
const FormConditionWrapper = ({ condition, children, field }) =>
2020
condition ? (
21-
<FormSpy>
21+
<FormSpy subscription={{ values: true }}>
2222
{({ values }) => (
2323
<Condition condition={condition} values={values} field={field}>
2424
{children}

0 commit comments

Comments
 (0)