Comparing version 0.7.1 to 0.7.2
@@ -172,6 +172,10 @@ 'use strict'; | ||
var valuePropName = _fieldOption$valuePropName === undefined ? 'value' : _fieldOption$valuePropName; | ||
var initialValue = fieldOption.initialValue; | ||
var _fieldOption$validateTrigger = fieldOption.validateTrigger; | ||
var validateTrigger = _fieldOption$validateTrigger === undefined ? defaultValidateTrigger : _fieldOption$validateTrigger; | ||
var inputProps = _defineProperty({}, valuePropName, fieldOption.initialValue); | ||
var inputProps = {}; | ||
if ('initialValue' in fieldOption) { | ||
inputProps[valuePropName] = initialValue; | ||
} | ||
if (rules && validateTrigger) { | ||
@@ -178,0 +182,0 @@ inputProps[validateTrigger] = this.getCacheBind(name, validateTrigger, this.onChangeValidate); |
{ | ||
"name": "rc-form", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "React High Order Form Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
248815
4628