CSS Class "right-sibs" and "left-sibs" are applied on click on edge when no siblings are present

This issue has been tracked since 2021-09-29.


When using the "toggleSiblingsResp" flag, CSS classes "right-sibs"/"left-sibs" are applied, when no prev and/or next siblings are present. (On click on the right/left edge of a node).

This is a misleading logic and can result in a faulty CSS style (eg. for customizing the appearance of arrows (for collapse/expand) - as in my usecase)

Possible solution:

hEdgeClickHandler - method:
On line 908:

replace else with else if ($prevSib.length>0)

and on line 916:

replace else with else if ($nextSib.length>0)

More Details About Repo
Owner Name dabeng
Repo Name OrgChart
Full Name dabeng/OrgChart
Language JavaScript
Created Date 2016-02-06
Updated Date 2022-11-25
Star Count 2498
Watcher Count 150
Fork Count 746
Issue Count 358


Issue Title Created Date Updated Date