We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ee434e commit f028dcfCopy full SHA for f028dcf
script.js
@@ -51,6 +51,12 @@ const editTaskText = (task) => {
51
const editTaskText = task.querySelector(".taskText");
52
editTaskText.setAttribute("contenteditable", "true");
53
editTaskText.focus();
54
+
55
+ // Listen for the blur event to detect when the user is done editing
56
+ editTaskText.addEventListener("blur", () => {
57
+ // Make the task text uneditable
58
+ editTaskText.setAttribute("contenteditable", "false");
59
+ });
60
}
61
62
// delete the task when clicked on deleteIcon
0 commit comments