rsuite 5.68.0 → 5.68.1

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.
@@ -36,7 +36,7 @@ export declare function getDisabledState(nodes: TreeNodeMap, node: TreeNode, pro
36
36
  /**
37
37
  * Returns the default value for the check tree.
38
38
  */
39
- export declare function getCheckTreeDefaultValue<T = any>(value: T, uncheckableItemValues: T): any[];
39
+ export declare function getCheckTreeDefaultValue<T = any>(value: T, uncheckableItemValues: T): any[] | T;
40
40
  /**
41
41
  * Retrieves the selected items from the given nodes.
42
42
  */
@@ -174,7 +174,7 @@ export function getCheckTreeDefaultValue(value, uncheckableItemValues) {
174
174
  return !uncheckableItemValues.includes(v);
175
175
  });
176
176
  }
177
- return [];
177
+ return value;
178
178
  }
179
179
 
180
180
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "5.68.0",
3
+ "version": "5.68.1",
4
4
  "description": "A suite of react components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",