OrganizationChart: if it has a large children number the lines are not connected properly #7488
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
trying to add an array with a large number of children, causes some of the lines connecting each
p-organizationchart-node-content
to not connect correctly.the issue is reproducible in any stackblitz example from the documentations, just add an array with large number of children, like this example
[ { label: 'John DOE', type: 'manager', expanded: true, country: 'fr', data: {}, children: [ { label: 'Jane SMITH', type: 'employee', expanded: true, country: 'ca', data: {}, children: [ { label: 'Emily BROWN', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Michael JOHNSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Sarah WILSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Christopher MARTIN', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Jessica TAYLOR', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'James ANDERSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Patricia MOORE', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Matthew JACKSON', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Ashley WHITE', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Joshua HARRIS', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Olivia DAVIS', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Benjamin CLARK', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Sophia LEWIS', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Daniel WALKER', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Elizabeth HALL', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'David ALLEN', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Emma WRIGHT', type: 'employee', expanded: true, country: 'ca', data: {}, }, { label: 'Joseph SCOTT', type: 'employee', expanded: true, country: 'ca', data: {}, }, ], }, { label: 'Linda ROBERTS', type: 'employee', expanded: true, country: 'ca', data: {}, }, ], }, ]
Reproducer
https://stackblitz.com/edit/npvpz7v7?file=src%2FApp.jsx,package.json
System Information
Steps to reproduce the behavior
pass an array with a large number of children to the
value
propExpected behavior
the lines connecting each
p-organizationchart-node-content
should not break or appear to not be connect connected to each otherThe text was updated successfully, but these errors were encountered: