},
beginEdit: function (event: Event) {
- const task = document.activeElement;
+ var task = document.activeElement;
if (!task) return;
+ if (task.classList.contains("tag")) task = task.parentElement!;
const input = document.createElement("input");
const desc = task.getElementsByClassName("desc")[0];
const oldDescription = desc.textContent!;