Fix selected object losing highlight on scroll in virtual list

This commit is contained in:
2026-03-20 12:10:26 +08:00
parent a496862902
commit 14786151e5

View File

@@ -849,6 +849,11 @@
selectCheckbox.checked = true;
row.classList.add('table-active');
}
if (activeRow && activeRow.dataset.key === row.dataset.key) {
row.classList.add('table-active');
activeRow = row;
}
});
const folderRows = document.querySelectorAll('.folder-row');