From acd6b66a4b477803c65ffac202b44f5511d3f5d3 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sat, 29 Jan 2022 16:40:07 -0800 Subject: [PATCH] Edit should still work when a tag has focus --- vopamoi.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vopamoi.ts b/vopamoi.ts index 3798488..73fc5d9 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -287,8 +287,9 @@ function BrowserUI() { }, 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!; -- 2.44.1