input.removeEventListener("blur", this.completeTagEdit);
task.removeChild(input);
task.focus();
- if (!Model.hasTag(task, newTagName)) {
+ if (newTagName && !Model.hasTag(task, newTagName)) {
ui.addTag(task.getAttribute("data-created")!, newTagName);
lastTagNameEntered = newTagName;
}