OrgChart icon indicating copy to clipboard operation
OrgChart copied to clipboard

showSiblings function does not remove `isChildrenCollapsed` class

Open BradenR88 opened this issue 2 years ago • 0 comments

The hideSiblings function adds the class isChildrenCollapsed class at https://github.com/dabeng/OrgChart/blob/ba2baa14d8640d1c8f03c4add657a9e9e892dfb2/src/js/jquery.orgchart.js#LL638C13-L638C13 and https://github.com/dabeng/OrgChart/blob/ba2baa14d8640d1c8f03c4add657a9e9e892dfb2/src/js/jquery.orgchart.js#LL643C1-L643C1 .

The 'showSiblings' does not remove this class.

I was using CSS to style nodes with children differently than those without children by using this isChildrenCollapsed class, but when you hide and re-show sibblings, the isChildrenCollapsed remains for all siblings and so they all become formatted the same.

BradenR88 avatar May 09 '23 17:05 BradenR88