rc-tree-select
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -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": [ |
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
92109
2663