]> git.scottworley.com Git - vopamoi/blobdiff - vopamoi.ts
Fix: Escape aborts tagging
[vopamoi] / vopamoi.ts
index 6e511a5e67c6172cdb273bc78d8e2c3b1bce04d2..d0f4fa157b3645d32e1626b2cf582e208f8b2e22 100644 (file)
@@ -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;
       }