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.
The
hideSiblings
function adds the classisChildrenCollapsed
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, theisChildrenCollapsed
remains for all siblings and so they all become formatted the same.