rc-tree-select
Advanced tools
Comparing version 5.12.0 to 5.12.1
@@ -64,2 +64,9 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
// ========================== Active ========================== | ||
var _React$useState = React.useState(null), | ||
_React$useState2 = _slicedToArray(_React$useState, 2), | ||
activeKey = _React$useState2[0], | ||
setActiveKey = _React$useState2[1]; | ||
var activeEntity = keyEntities[activeKey]; | ||
// ========================== Values ========================== | ||
@@ -84,2 +91,3 @@ var mergedCheckedKeys = React.useMemo(function () { | ||
}); | ||
setActiveKey(checkedKeys[0]); | ||
} | ||
@@ -98,10 +106,10 @@ }, [open]); | ||
// =========================== Keys =========================== | ||
var _React$useState = React.useState(treeDefaultExpandedKeys), | ||
_React$useState2 = _slicedToArray(_React$useState, 2), | ||
expandedKeys = _React$useState2[0], | ||
setExpandedKeys = _React$useState2[1]; | ||
var _React$useState3 = React.useState(null), | ||
var _React$useState3 = React.useState(treeDefaultExpandedKeys), | ||
_React$useState4 = _slicedToArray(_React$useState3, 2), | ||
searchExpandedKeys = _React$useState4[0], | ||
setSearchExpandedKeys = _React$useState4[1]; | ||
expandedKeys = _React$useState4[0], | ||
setExpandedKeys = _React$useState4[1]; | ||
var _React$useState5 = React.useState(null), | ||
_React$useState6 = _slicedToArray(_React$useState5, 2), | ||
searchExpandedKeys = _React$useState6[0], | ||
setSearchExpandedKeys = _React$useState6[1]; | ||
var mergedExpandedKeys = React.useMemo(function () { | ||
@@ -144,7 +152,2 @@ if (treeExpandedKeys) { | ||
// ========================= Keyboard ========================= | ||
var _React$useState5 = React.useState(null), | ||
_React$useState6 = _slicedToArray(_React$useState5, 2), | ||
activeKey = _React$useState6[0], | ||
setActiveKey = _React$useState6[1]; | ||
var activeEntity = keyEntities[activeKey]; | ||
React.useImperativeHandle(ref, function () { | ||
@@ -151,0 +154,0 @@ var _treeRef$current2; |
@@ -74,2 +74,9 @@ "use strict"; | ||
// ========================== Active ========================== | ||
var _React$useState = React.useState(null), | ||
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), | ||
activeKey = _React$useState2[0], | ||
setActiveKey = _React$useState2[1]; | ||
var activeEntity = keyEntities[activeKey]; | ||
// ========================== Values ========================== | ||
@@ -94,2 +101,3 @@ var mergedCheckedKeys = React.useMemo(function () { | ||
}); | ||
setActiveKey(checkedKeys[0]); | ||
} | ||
@@ -108,10 +116,10 @@ }, [open]); | ||
// =========================== Keys =========================== | ||
var _React$useState = React.useState(treeDefaultExpandedKeys), | ||
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), | ||
expandedKeys = _React$useState2[0], | ||
setExpandedKeys = _React$useState2[1]; | ||
var _React$useState3 = React.useState(null), | ||
var _React$useState3 = React.useState(treeDefaultExpandedKeys), | ||
_React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), | ||
searchExpandedKeys = _React$useState4[0], | ||
setSearchExpandedKeys = _React$useState4[1]; | ||
expandedKeys = _React$useState4[0], | ||
setExpandedKeys = _React$useState4[1]; | ||
var _React$useState5 = React.useState(null), | ||
_React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2), | ||
searchExpandedKeys = _React$useState6[0], | ||
setSearchExpandedKeys = _React$useState6[1]; | ||
var mergedExpandedKeys = React.useMemo(function () { | ||
@@ -154,7 +162,2 @@ if (treeExpandedKeys) { | ||
// ========================= Keyboard ========================= | ||
var _React$useState5 = React.useState(null), | ||
_React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2), | ||
activeKey = _React$useState6[0], | ||
setActiveKey = _React$useState6[1]; | ||
var activeEntity = keyEntities[activeKey]; | ||
React.useImperativeHandle(ref, function () { | ||
@@ -161,0 +164,0 @@ var _treeRef$current2; |
{ | ||
"name": "rc-tree-select", | ||
"version": "5.12.0", | ||
"version": "5.12.1", | ||
"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
162522
3155