Name von navElement wird geändert wenn Listenname geändert wird
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user