Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showSiblings function does not remove isChildrenCollapsed class #705

Open
BradenR88 opened this issue May 9, 2023 · 0 comments
Open

showSiblings function does not remove isChildrenCollapsed class #705

BradenR88 opened this issue May 9, 2023 · 0 comments

Comments

@BradenR88
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant