Virtualized TreePicker with custom valueKey does not collapse properly
Author: felipelionmottaCreated Jul 15, 2025Updated Nov 7, 2025
What version of rsuite are you using?
^5.73.1
What version of React are you using?
^18.3.1
What version of TypeScript are you using (if any)?
^5.0.2
What browser are you using?
Chrome
Describe the Bug
Using 'data' on valueKey for a virtualized TreePicker breaks the expand/collapse feature.
Expected Behavior
Expand and collapse to work properly.
To Reproduce
https://codesandbox.io/p/sandbox/zen-field-zk75q5?file=%2Findex.js
Source: rsuite/rsuite