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

Second parent child node is not rendering #20

Closed
p3rv3z opened this issue Jun 26, 2022 · 2 comments
Closed

Second parent child node is not rendering #20

p3rv3z opened this issue Jun 26, 2022 · 2 comments

Comments

@p3rv3z
Copy link

p3rv3z commented Jun 26, 2022

Here you can see Ava Field's child node "Peter Stevens" is not rendering.

var family = new FamilyTree(document.getElementById("tree"), {
    mouseScrool: FamilyTree.action.none,
    nodeBinding: {
        field_0: "name"
    },
    nodes: [
        { id: 1, pids: [2], name: "Amber McKenzie", gender: "female" },
        { id: 2, pids: [1], name: "Ava Field", gender: "male" },
        { id: 3, fid: 2, name: "Peter Stevens", gender: "male" },
        { id: 4, mid: 1, name: "John Doe", gender: "male" }
    ]
});

image

But when i move the Ava Field's node to on top then the child node is rendering but the other parent node child is not rendering

var family = new FamilyTree(document.getElementById("tree"), {
    mouseScrool: FamilyTree.action.none,
    nodeBinding: {
        field_0: "name"
    },
    nodes: [
        { id: 2, pids: [1], name: "Ava Field", gender: "male" },
        { id: 1, pids: [2], name: "Amber McKenzie", gender: "female" },
        { id: 3, fid: 2, name: "Peter Stevens", gender: "male" },
        { id: 4, mid: 1, name: "John Doe", gender: "male" }
    ]
});

image

@ZornitsaPesheva
Copy link
Collaborator

We still don't support single mothers and fathers, but we are working on this.
Please check in our future releases.

@ZornitsaPesheva
Copy link
Collaborator

Now we support this. Please download the latest version.

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

2 participants