rc-tree-select
Advanced tools
Comparing version 1.4.6 to 1.4.7
@@ -512,2 +512,4 @@ 'use strict'; | ||
getValue: function getValue(checkedTreeNodes) { | ||
var _this4 = this; | ||
this.checkedTreeNodes = checkedTreeNodes; | ||
@@ -528,5 +530,6 @@ var mapVal = function mapVal(arr) { | ||
})); | ||
checkedValues = mapVal(checkedTreeNodes.filter(function (itemObj) { | ||
_this4.checkedTreeNodes = checkedTreeNodes.filter(function (itemObj) { | ||
return posArr.indexOf(itemObj.pos) !== -1; | ||
})); | ||
}); | ||
checkedValues = mapVal(_this4.checkedTreeNodes); | ||
})(); | ||
@@ -542,2 +545,4 @@ } else { | ||
getDeselectedValue: function getDeselectedValue(selectedValue) { | ||
var _this5 = this; | ||
var checkedTreeNodes = this.checkedTreeNodes; | ||
@@ -561,6 +566,6 @@ var unCheckPos = undefined; | ||
}); | ||
var label = this.state.label.concat(); | ||
var label = []; | ||
this.state.value.forEach(function (val, index) { | ||
if (newVals.indexOf(val) === -1) { | ||
label.splice(index, 1); | ||
if (newVals.indexOf(val) > -1) { | ||
label.push(_this5.state.label[index]); | ||
} | ||
@@ -572,3 +577,3 @@ }); | ||
setOpenState: function setOpenState(open) { | ||
var _this4 = this; | ||
var _this6 = this; | ||
@@ -579,5 +584,5 @@ var refs = this.refs; | ||
}, function () { | ||
if (open || (0, _util.isMultipleOrTagsOrCombobox)(_this4.props)) { | ||
if (_this4.getInputDOMNode()) { | ||
_this4.getInputDOMNode().focus(); | ||
if (open || (0, _util.isMultipleOrTagsOrCombobox)(_this6.props)) { | ||
if (_this6.getInputDOMNode()) { | ||
_this6.getInputDOMNode().focus(); | ||
} | ||
@@ -644,3 +649,3 @@ } else if (refs.selection) { | ||
} | ||
if (ex.clear) { | ||
if (ex.clear && props.treeCheckable) { | ||
var treeData = this.renderTreeData() || props.children; | ||
@@ -653,3 +658,3 @@ ex.allCheckedNodes = (0, _util.flatToHierarchy)((0, _util.filterAllCheckedData)(value, treeData)); | ||
renderTopControlNode: function renderTopControlNode() { | ||
var _this5 = this; | ||
var _this7 = this; | ||
@@ -705,3 +710,3 @@ var value = this.state.value; | ||
_react2['default'].createElement('span', { className: prefixCls + '-selection__choice__remove', | ||
onClick: _this5.removeSelected.bind(_this5, singleValue) }) | ||
onClick: _this7.removeSelected.bind(_this7, singleValue) }) | ||
); | ||
@@ -708,0 +713,0 @@ }); |
{ | ||
"name": "rc-tree-select", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"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
96254
2782