Comparing version 0.10.0 to 0.10.1
@@ -42,2 +42,3 @@ 'use strict'; | ||
var formPropName = _option$formPropName === undefined ? 'form' : _option$formPropName; | ||
var withRef = option.withRef; | ||
@@ -382,3 +383,3 @@ function decorate(WrappedComponent) { | ||
value: function hasRules(validate) { | ||
return validate.some(function (item) { | ||
return validate && validate.some(function (item) { | ||
return !!item.rules; | ||
@@ -571,2 +572,5 @@ }); | ||
} | ||
if (withRef) { | ||
formProps.ref = 'wrappedComponent'; | ||
} | ||
return _react2['default'].createElement(WrappedComponent, _extends({}, formProps, this.props)); | ||
@@ -573,0 +577,0 @@ } |
{ | ||
"name": "rc-form", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "React High Order Form Component", | ||
@@ -45,2 +45,3 @@ "keywords": [ | ||
"antd": "^0.11.2", | ||
"async": "^1.5.2", | ||
"cz-conventional-changelog": "^1.1.5", | ||
@@ -67,2 +68,2 @@ "expect.js": "0.3.x", | ||
} | ||
} | ||
} |
@@ -5,4 +5,2 @@ # rc-form | ||
Note: This is unstable, under development now. | ||
[![NPM version][npm-image]][npm-url] | ||
@@ -9,0 +7,0 @@ [![build status][travis-image]][travis-url] |
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
255513
4790
15
215