()
| 703 | input.value = folder.name; |
| 704 | |
| 705 | const refreshDots = () => { |
| 706 | for (const dot of overlay.querySelectorAll(".folder-color-dot")) { |
| 707 | const active = dot.dataset.color === selectedColor; |
| 708 | dot.classList.toggle("active", active); |
| 709 | dot.setAttribute("aria-pressed", String(active)); |
| 710 | } |
| 711 | }; |
| 712 | |
| 713 | overlay.addEventListener("mousedown", (e) => { |
| 714 | if (e.target === overlay) closeFolderEditor(); |