X-Git-Url: http://git.scottworley.com/vopamoi/blobdiff_plain/09cd65ad6907a157c1907c6b30325e31128e0267..187164d50f67ca24cf7769c2d1746caae51f72b7:/vopamoi.ts diff --git a/vopamoi.ts b/vopamoi.ts index a6f85f2..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 (!Model.hasTag(task, newTagName)) { + if (resolution === CommitOrAbort.Commit && newTagName && !Model.hasTag(task, newTagName)) { ui.addTag(task.getAttribute("data-created")!, newTagName); lastTagNameEntered = newTagName; }