org-chart
org-chart copied to clipboard
getChartState does not update the _expanded/children property correctly when a collapse button is clicked
To Reproduce Steps to reproduce the behavior:
- Go to 'https://stackblitz.com/edit/js-g42mam'
- Click on 'Preview Org Chart In Modal Button'
- 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.
- Error : Open Preview Modal, you will see 2 Nodes will being collapsed instead of 1.
Expected behavior Only the Last Node should be collapsed