Skip to content

The function to disable editing of child nodes is ineffective. #218

@567ing567

Description

@567ing567

I want to make only the root node editable, while the child nodes should not be editable, but it hasn't worked. The code is as follows:

const tree = new InspireTree({
    editable:true,
    data: [{
      text: 'parent',
      itree: {state: { editable: true } },
      children: [{
        text: 'child',
        itree: {state: { editable: false} },
      }]
    }]
  });
  
  new InspireTreeDOM(tree, {
    target: '.tree'
  });
})

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions