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

fixed bug when child is collapsed, but grandsons remains visible #93

Open
alanblins opened this issue Dec 27, 2018 · 2 comments
Open

fixed bug when child is collapsed, but grandsons remains visible #93

alanblins opened this issue Dec 27, 2018 · 2 comments

Comments

@alanblins
Copy link

fixed bug when child has state expanded false and levels 5, then the grandsons nodes remains visible. You can see the bug with the code below:

var tree = [
      {
        text: "Parent 1",
        nodes: [
          {
            text: "Child 1",
            state:{expanded:false},
            nodes: [
              {
                text: "Grandchild 1"
              },
              {
                text: "Grandchild 2"
              }
            ]
          },
          {
            text: "Child 2"
          }
        ]
      },
      {
        text: "Parent 2"
      },
      {
        text: "Parent 3"
      },
      {
        text: "Parent 4"
      },
      {
        text: "Parent 5"
      }
    ];
    
       $('#tree').treeview({
           levels:5,
           data: tree});
@skateman
Copy link
Member

Hi, could you please provide a reproducer? Preferably something I can click&run like jsfiddle or codepen.

@alanblins
Copy link
Author

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