rsuite 5.5.1 → 5.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -140,7 +140,7 @@ var Cascader = /*#__PURE__*/React.forwardRef(function (props, ref) {
140
140
  var getSearchResult = useCallback(function (keyword) {
141
141
  var items = [];
142
142
  var result = flattenData.filter(function (item) {
143
- if (item[childrenKey]) {
143
+ if (!parentSelectable && item[childrenKey]) {
144
144
  return false;
145
145
  }
146
146
 
@@ -156,7 +156,7 @@ var Cascader = /*#__PURE__*/React.forwardRef(function (props, ref) {
156
156
  }
157
157
 
158
158
  return items;
159
- }, [childrenKey, flattenData, someKeyword]); // Used to hover the focuse item when trigger `onKeydown`
159
+ }, [childrenKey, flattenData, someKeyword, parentSelectable]); // Used to hover the focuse item when trigger `onKeydown`
160
160
 
161
161
  var _useFocusItemValue = useFocusItemValue(value, {
162
162
  rtl: rtl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "5.5.1",
3
+ "version": "5.5.2",
4
4
  "description": "A suite of react components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",