From 7b3e5757607e3c3857997d0aafa52d4da0182c77 Mon Sep 17 00:00:00 2001 From: Jiaqi Liu Date: Wed, 6 Mar 2019 13:53:11 +0800 Subject: [PATCH] chore: release v0.5.0-beta.7 --- package.json | 2 +- src/Field.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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