patternfly-bootstrap-treeview icon indicating copy to clipboard operation
patternfly-bootstrap-treeview copied to clipboard

ExpandAll with lazyLoad not working

Open pszNicx opened this issue 6 years ago • 0 comments

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

pszNicx avatar May 30 '19 18:05 pszNicx