Fix auto-expand of trees in source code page sidebar

This commit is contained in:
Guillaume Gomez
2022-07-17 14:11:45 +02:00
parent 1cd72b7343
commit 3024d399a2
@@ -33,7 +33,7 @@ function createDirEntry(elem, parent, fullPath, hasFoundFile) {
folders.className = "folders";
if (elem.dirs) {
for (const dir of elem.dirs) {
if (createDirEntry(dir, folders, fullPath, hasFoundFile)) {
if (createDirEntry(dir, folders, fullPath, false)) {
dirEntry.open = true;
hasFoundFile = true;
}