react-form
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -59,3 +59,3 @@ 'use strict'; | ||
if (typeof defaultValue !== 'undefined') { | ||
if (typeof defaultValue !== 'undefined' && typeof this.getFieldValues().value === 'undefined') { | ||
this.fieldApi.setValue(defaultValue); | ||
@@ -62,0 +62,0 @@ } |
@@ -73,3 +73,3 @@ 'use strict'; | ||
if (typeof defaultValues !== 'undefined') { | ||
if (typeof defaultValues !== 'undefined' && typeof this.fieldApi.getValue() === 'undefined') { | ||
this.fieldApi.setValue(defaultValues); | ||
@@ -144,2 +144,5 @@ } | ||
});_this2.fieldApi = { | ||
getValue: function getValue() { | ||
return formApi.setValue(fullField); | ||
}, | ||
setValue: function setValue(value) { | ||
@@ -146,0 +149,0 @@ return formApi.setValue(fullField, value); |
@@ -59,3 +59,3 @@ 'use strict'; | ||
if (typeof defaultValue !== 'undefined') { | ||
if (typeof defaultValue !== 'undefined' && typeof this.getFieldValues().value === 'undefined') { | ||
this.fieldApi.setValue(defaultValue); | ||
@@ -62,0 +62,0 @@ } |
@@ -73,3 +73,3 @@ 'use strict'; | ||
if (typeof defaultValues !== 'undefined') { | ||
if (typeof defaultValues !== 'undefined' && typeof this.fieldApi.getValue() === 'undefined') { | ||
this.fieldApi.setValue(defaultValues); | ||
@@ -144,2 +144,5 @@ } | ||
});_this2.fieldApi = { | ||
getValue: function getValue() { | ||
return formApi.setValue(fullField); | ||
}, | ||
setValue: function setValue(value) { | ||
@@ -146,0 +149,0 @@ return formApi.setValue(fullField, value); |
{ | ||
"name": "react-form", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "React Form is a lightweight framework and utility for building powerful forms in React applications.", | ||
@@ -72,9 +72,9 @@ "main": "lib/index.js", | ||
"babel-runtime": "^6.26.0", | ||
"bootstrap": "^4.0.0-alpha.6", | ||
"chai": "^4.1.1", | ||
"enzyme": "^3.3.0", | ||
"enzyme-adapter-react-16": "^1.1.1", | ||
"bootstrap": "^4.0.0-alpha.6", | ||
"copy-webpack-plugin": "^4.0.1", | ||
"cross-env": "^5.1.3", | ||
"css-loader": "^0.28.5", | ||
"enzyme": "^3.3.0", | ||
"enzyme-adapter-react-16": "^1.1.1", | ||
"eslint": "^4.5.0", | ||
@@ -81,0 +81,0 @@ "eslint-config-react-tools": "^1.0.10", |
220941
4436