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;
}