rc-tree-select
Advanced tools
Comparing version 5.24.4 to 5.24.5
@@ -252,4 +252,4 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
}); | ||
var loadDataFun = useMemo(function () { | ||
return searchValue ? null : loadData; | ||
var hasLoadDataFn = useMemo(function () { | ||
return searchValue ? false : true; | ||
}, [searchValue, treeExpandedKeys || expandedKeys], function (_ref2, _ref3) { | ||
@@ -263,2 +263,3 @@ var _ref4 = _slicedToArray(_ref2, 1), | ||
}); | ||
var syncLoadData = hasLoadDataFn ? loadData : null; | ||
@@ -301,3 +302,3 @@ // ========================== Render ========================== | ||
showLine: treeLine, | ||
loadData: loadDataFun, | ||
loadData: syncLoadData, | ||
motion: treeMotion, | ||
@@ -304,0 +305,0 @@ activeKey: activeKey |
@@ -260,4 +260,4 @@ "use strict"; | ||
}); | ||
var loadDataFun = (0, _useMemo.default)(function () { | ||
return searchValue ? null : loadData; | ||
var hasLoadDataFn = (0, _useMemo.default)(function () { | ||
return searchValue ? false : true; | ||
}, [searchValue, treeExpandedKeys || expandedKeys], function (_ref2, _ref3) { | ||
@@ -271,2 +271,3 @@ var _ref4 = (0, _slicedToArray2.default)(_ref2, 1), | ||
}); | ||
var syncLoadData = hasLoadDataFn ? loadData : null; | ||
@@ -309,3 +310,3 @@ // ========================== Render ========================== | ||
showLine: treeLine, | ||
loadData: loadDataFun, | ||
loadData: syncLoadData, | ||
motion: treeMotion, | ||
@@ -312,0 +313,0 @@ activeKey: activeKey |
{ | ||
"name": "rc-tree-select", | ||
"version": "5.24.4", | ||
"version": "5.24.5", | ||
"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
151924
3048