patternfly-bootstrap-treeview
patternfly-bootstrap-treeview copied to clipboard
ExpandAll with lazyLoad not working
Hi,
I'm having an issue when I try to expand my entire tree using expandAll when I have lazy loaded branches. I'm working around this by explicitly expanding each node but it seems the issue is happening here:
bootstrap-treeview.js line 1585:
$.each(nodes, $.proxy(function (index, node) {
this._setExpanded(node, (level > 0) ? true : false, options);
if (node.nodes) {
this._expandLevels(node.nodes, level-1, options);
}
}, this));
When lazyLoad is set to true on a node, the node does not show as having any nodes property when it gets to the if statement. This skips the call to expand any such branch.
-- Nick