Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

fixed bug when child is collapsed #89

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alanblins
Copy link

@alanblins alanblins commented Nov 12, 2018

Issue #93
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});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant