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.4.2 to 1.4.3

2

lib/Select.js

@@ -50,3 +50,3 @@ 'use strict';

function filterFn(input, child) {
return String((0, _util.getPropValue)(child, this.props.treeNodeFilterProp)).indexOf(input) > -1;
return String((0, _util.getPropValue)(child, (0, _util.labelCompatible)(this.props.treeNodeFilterProp))).indexOf(input) > -1;
}

@@ -53,0 +53,0 @@

@@ -104,3 +104,3 @@ 'use strict';

var props = this.props;
return props.inputValue && treeNode.props[props.treeNodeFilterProp].indexOf(props.inputValue) > -1;
return props.inputValue && treeNode.props[(0, _util.labelCompatible)(props.treeNodeFilterProp)].indexOf(props.inputValue) > -1;
},

@@ -107,0 +107,0 @@

@@ -16,2 +16,3 @@ 'use strict';

exports.toArray = toArray;
exports.labelCompatible = labelCompatible;
exports.isInclude = isInclude;

@@ -76,2 +77,10 @@ exports.getCheckedKeys = getCheckedKeys;

function labelCompatible(prop) {
var newProp = prop;
if (newProp === 'label') {
newProp = 'title';
}
return newProp;
}
function isInclude(smallArray, bigArray) {

@@ -78,0 +87,0 @@ // attention: [0,0,1] [0,0,10]

{
"name": "rc-tree-select",
"version": "1.4.2",
"version": "1.4.3",
"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