Skip to content

Tree Item not expanding.. #3

Open
@planctron

Description

@planctron

Having four (demo) categories in my list, but see only "All" tree node which cannot be expanded.

Cause: I could find that the "toggleChildren" looks different than in web tutorial.
toggleChildren() {
if (
this.props.item.child_id.length > 0 &&
this.props.item.children == undefined
) {
this.trigger("tree_item_clicked", { data: this.props.item });
}
Object.assign(this.state, {
childrenVisible: !this.state.childrenVisible,
});
}
}

Metadata

Metadata

Assignees

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