Skip to content

Commit

Permalink
Fix react 15 console warning: 'value' prop on forms should not be null
Browse files Browse the repository at this point in the history
the value in redux store shouldn't be affected.
caused by small breaking change in react 15: facebook/react#5864
  • Loading branch information
budiantotan committed Nov 28, 2017
1 parent 9ffbea8 commit 73596e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createField.js
Expand Up @@ -33,7 +33,7 @@ const mapStateToProps = (state, props) => {
isFieldEnabled: field.isEnabled,
isValidating: field.isValidating,
touched: field.touched,
value: field.value,
value: field.value || '',
};
};

Expand Down

0 comments on commit 73596e4

Please sign in to comment.