Closed nicosayer closed 3 years ago
Awesome job on the repo! Love your work!
I stumbled upon a weird display bug lately and managed to narrow it to a small node:
user4
The tree should look like this:
The tree looks like this: The bug only seems to appear with this specific rootId. If I set another rootId, the tree displays correctly.
nodes.json:
nodes.json
[ { "id": "user1", "gender": "male", "parents": [ { "id": "user5", "type": "blood" }, { "id": "user6", "type": "blood" } ], "siblings": [{ "id": "user4", "type": "blood" }], "spouses": [], "children": [{ "id": "user3", "type": "blood" }] }, { "id": "user2", "gender": "female", "parents": [], "siblings": [], "spouses": [{ "id": "user5", "type": "married" }], "children": [] }, { "id": "user3", "gender": "male", "parents": [{ "id": "user1", "type": "blood" }], "siblings": [], "spouses": [], "children": [] }, { "id": "user4", "gender": "female", "parents": [ { "id": "user5", "type": "blood" }, { "id": "user6", "type": "blood" } ], "siblings": [{ "id": "user1", "type": "blood" }], "spouses": [], "children": [] }, { "id": "user5", "gender": "male", "parents": [], "siblings": [], "spouses": [ { "id": "user6", "type": "divorced" }, { "id": "user2", "type": "married" } ], "children": [ { "id": "user1", "type": "blood" }, { "id": "user4", "type": "blood" } ] }, { "id": "user6", "gender": "female", "parents": [], "siblings": [], "spouses": [{ "id": "user5", "type": "divorced" }], "children": [ { "id": "user1", "type": "blood" }, { "id": "user4", "type": "blood" } ] } ]
Hi,
Thanks. I've found the bug. Will fix it in the next major release (the code has been rewritten since last publish).
v3.0.0 has been published, please check
Works perfectly ! Thanks
Awesome job on the repo! Love your work!
I stumbled upon a weird display bug lately and managed to narrow it to a small node:
Reproduction link
Steps to reproduce
user4
as rootId.What is expected?
The tree should look like this:
What is actually happening?
The tree looks like this: The bug only seems to appear with this specific rootId. If I set another rootId, the tree displays correctly.
nodes.json
: