bug: abbrechenknopf beim bearbeiten des listennamens bricht vorgang ab

This commit is contained in:
Technoir committed 2026-10-12 13:41:25 +02:00
1 parent da996b5922
commit 35ef1a2bc8
1 file changed
+3
@@ -48,6 +48,9 @@ function editList(listLi) {
save();
});
formElement.querySelector(".editForm__abortButton").addEventListener("click", () => {
formElement.replaceWith(listLi);
})
formElement.addEventListener("keydown", (e) => {
if (e.key == "Escape") formElement.replaceWith(listLi);
})