Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-tree-select

Package Overview
Dependencies
Maintainers
2
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tree-select - npm Package Compare versions

Comparing version 1.6.0-beta.2 to 1.6.0

13

lib/util.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc