inovua / reactdatagrid

Empower Your Data with the best React Data Grid there is
https://reactdatagrid.io
Other
3.44k stars 57 forks source link

Bug: expandAllTreeNodes works incorrectly when generateIdFromPath is disabled #346

Open AndrewBoklashko opened 1 year ago

AndrewBoklashko commented 1 year ago

Sandbox: https://codesandbox.io/s/reactdatagrid-expand-hierarchy-issue-toddm2?file=/src/App.js

Steps to reproduce the issue:

  1. Open the sandbox link
  2. Click 'Expand All' button

Expected result: all tree nodes are expanded Actual result: only level 1 nodes are expanded

Also it would be helpful to have typescript definitions for expandAllTreeNodes and collapseAllTreeNodes.

AndrewBoklashko commented 1 year ago

Any updates?