From 73596e432db79130c389ba121f23fe6c0e1172cc Mon Sep 17 00:00:00 2001 From: Budianto Tan Date: Sat, 25 Nov 2017 14:38:18 +0700 Subject: [PATCH] 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: https://github.com/facebook/react/pull/5864 --- src/createField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/createField.js b/src/createField.js index c45f21a..4e88591 100644 --- a/src/createField.js +++ b/src/createField.js @@ -33,7 +33,7 @@ const mapStateToProps = (state, props) => { isFieldEnabled: field.isEnabled, isValidating: field.isValidating, touched: field.touched, - value: field.value, + value: field.value || '', }; };