GoJs close all roots in one click
I’m new to GoJs. I’ve built an Org chart that has search functionality. When the user searches, all branches that contain a match are expanded to the match. When they hit the “clear” button, all branches should collapse. It does collapse down to the third level like I want it to, however the internal roots are still expanded. So if I open a branch, all of the internal branches that were opened on the previous search are still expanded.