From 187164d50f67ca24cf7769c2d1746caae51f72b7 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 27 Jan 2022 12:26:23 -0800 Subject: [PATCH 1/1] Fix: Escape aborts tagging --- vopamoi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vopamoi.ts b/vopamoi.ts index 6e511a5..d0f4fa1 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -284,7 +284,7 @@ function BrowserUI() { input.removeEventListener("blur", this.completeTagEdit); task.removeChild(input); task.focus(); - if (newTagName && !Model.hasTag(task, newTagName)) { + if (resolution === CommitOrAbort.Commit && newTagName && !Model.hasTag(task, newTagName)) { ui.addTag(task.getAttribute("data-created")!, newTagName); lastTagNameEntered = newTagName; } -- 2.44.1