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 authored Nov 25, 2017
1 parent 7cd6efb commit 6df33f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createField.js
Original file line number Diff line number Diff line change
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 6df33f4

Please sign in to comment.