]> git.scottworley.com Git - vopamoi/blobdiff - vopamoi.ts
The tag-input box appearing should not move other tasks' tags around
[vopamoi] / vopamoi.ts
index a6f85f2dc53864577c98445de5b7606b80eb4ac7..d0f4fa157b3645d32e1626b2cf582e208f8b2e22 100644 (file)
@@ -284,7 +284,7 @@ function BrowserUI() {
       input.removeEventListener("blur", this.completeTagEdit);
       task.removeChild(input);
       task.focus();
-      if (!Model.hasTag(task, newTagName)) {
+      if (resolution === CommitOrAbort.Commit && newTagName && !Model.hasTag(task, newTagName)) {
         ui.addTag(task.getAttribute("data-created")!, newTagName);
         lastTagNameEntered = newTagName;
       }