feat: Add closeDropdown method to manage dropdown state in SidebarManager

This commit is contained in:
Will Miao
2025-08-26 19:25:27 +08:00
parent 2366f143d8
commit 8e5bfd379e

View File

@@ -398,6 +398,13 @@ export class SidebarManager {
}
}
closeDropdown() {
if (this.openDropdown) {
this.openDropdown.classList.remove('open');
this.openDropdown = null;
}
}
async selectFolder(path) {
// Update selected path
this.selectedPath = path;