org-chart icon indicating copy to clipboard operation
org-chart copied to clipboard

getChartState does not update the _expanded/children property correctly when a collapse button is clicked

Open vatraiadarsh opened this issue 9 months ago • 3 comments

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://stackblitz.com/edit/js-g42mam'
  2. Click on 'Preview Org Chart In Modal Button'
  3. In Preview Org Chart you will see the same tree as in Main screen. Now close the modal go back to the main screen and collapse last Node Only.
  4. Error : Open Preview Modal, you will see 2 Nodes will being collapsed instead of 1.

Expected behavior Only the Last Node should be collapsed

vatraiadarsh avatar May 25 '24 20:05 vatraiadarsh