bug: abbrechenknopf beim bearbeiten des listennamens bricht vorgang ab
This commit is contained in:
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);
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user