diff --git a/app/source/TodoEdit.js b/app/source/TodoEdit.js index e18c40c..e2b647b 100644 --- a/app/source/TodoEdit.js +++ b/app/source/TodoEdit.js @@ -115,7 +115,11 @@ enyo.kind({ insert: function(inSender, inEvent) { var val = this.$.tododetail.getValue(); - this.$.tododetail.setValue(val + " " + inSender.content); + if (val.length == 0) { + this.$.tododetail.setValue(inSender.content); + } else { + this.$.tododetail.setValue(val + " " + inSender.content); + } this.closePopup(); this.$.tododetail.forceFocus(); }