rc-tree-select
Advanced tools
Comparing version 1.6.0-beta.2 to 1.6.0
@@ -443,5 +443,6 @@ /* eslint no-loop-func: 0*/ | ||
// return React.Children.map(children, child => { | ||
return Array.from(children).map(function (child) { | ||
var newChild = cb(child); | ||
if (newChild && newChild.props.children) { | ||
if (newChild && newChild.props && newChild.props.children) { | ||
return _react2['default'].cloneElement(newChild, {}, recursiveCloneChildren(newChild.props.children, cb)); | ||
@@ -454,6 +455,8 @@ } | ||
// const newChildren = recursiveCloneChildren(children, child => { | ||
// const extraProps = { | ||
// _prop: true, | ||
// }; | ||
// return React.cloneElement(child, extraProps); | ||
// const extraProps = {}; | ||
// if (child && child.type && child.type.xxx) { | ||
// extraProps._prop = true; | ||
// return React.cloneElement(child, extraProps); | ||
// } | ||
// return child; | ||
// }); | ||
@@ -460,0 +463,0 @@ |
{ | ||
"name": "rc-tree-select", | ||
"version": "1.6.0-beta.2", | ||
"version": "1.6.0", | ||
"description": "tree-select ui component for react", | ||
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
112163
3228
0