Skip to content

Commit 6df33f4

Browse files
authored
Fix react 15 console warning: 'value' prop on forms should not be null
the value in redux store shouldn't be affected. caused by small breaking change in react 15: facebook/react#5864
1 parent 7cd6efb commit 6df33f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createField.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const mapStateToProps = (state, props) => {
3333
isFieldEnabled: field.isEnabled,
3434
isValidating: field.isValidating,
3535
touched: field.touched,
36-
value: field.value,
36+
value: field.value || '',
3737
};
3838
};
3939

0 commit comments

Comments
 (0)