jakezatecky/react-checkbox-tree

CheckboxTreeError: Duplicate value '1****' detected. All node values must be unique.

Ravindrakumara opened this issue · 1 comments

image

How to allow duplicate values; on "react-checkbox-tree": "^1.8.0",

please let me know

The tree requires unique values because it treats each node in the tree as distinct. There is no native support for duplicate values in this component.

That said, it is possible to append/prepend additional information to the existing duplicate values to make them unique for the tree (such as duplicateValue0 or /unique/path/to/duplicateValue). You can always strip these additions when converting the values back for use outside of the tree (although you need to retain them for use inside the tree).