Name von navElement wird geändert wenn Listenname geändert wird

This commit is contained in:
Technoir committed 2026-10-10 11:56:00 +02:00
1 parent bbc3cfe0f7
commit 5135bcad5a
1 file changed
+3
@@ -37,6 +37,9 @@ export function editList(id, formElement, formData, listLi) {
let newName = formData.newListName;
document.querySelector(`.navbar__list[data-id='${listLi.dataset.id}'] > a`).textContent = newName;
listLi.querySelector(".list__name").textContent = newName;
listLi.setAttribute("href", `/list/${id}`);
formElement.replaceWith(listLi);