fix indexTree
This commit is contained in:
parent
bed1a9e2fa
commit
a8235e9ee5
|
|
@ -331,6 +331,8 @@ function indexTree<T extends TreeItem>(
|
|||
if (isVisible && !isVisible(parent))
|
||||
return;
|
||||
for (const item of parent.children as T[]) {
|
||||
if (isVisible && !isVisible(item))
|
||||
continue;
|
||||
const expandState = temporaryExpanded.has(item.id) || expandedItems.get(item.id);
|
||||
const autoExpandMatches = autoExpandDepth > depth && result.size < 25 && expandState !== false;
|
||||
const expanded = item.children.length ? expandState ?? autoExpandMatches : undefined;
|
||||
|
|
|
|||
Loading…
Reference in a new issue