diff --git a/package.json b/package.json index c493cfd..268963a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-formutil", - "version": "0.5.0-beta.6", + "version": "0.5.0-beta.7", "description": "Happy to build the forms in React ^_^", "main": "lib/index.js", "directories": { diff --git a/src/Field.js b/src/Field.js index 2d2aa05..e400b77 100644 --- a/src/Field.js +++ b/src/Field.js @@ -77,7 +77,7 @@ class Field extends Component { } return this.$$merge({ - ...this.$baseState, // the default state + ...this.$baseState, // the base state ...this.props.$defaultState, // self default state $value: '$defaultValue' in this.props ? this.props.$defaultValue : '', ...$initialState, // the default state from Form