diff --git a/asset/js/widget/TermInput.js b/asset/js/widget/TermInput.js index 34ec69a9..595d4bd2 100644 --- a/asset/js/widget/TermInput.js +++ b/asset/js/widget/TermInput.js @@ -45,9 +45,10 @@ define(["../notjQuery", "BaseInput"], function ($, BaseInput) { addTerm(termData, termIndex = null) { if (this.ignoreSpaceUntil !== null) { if (this.ignoreSpaceSince === 0 && termData.label[this.ignoreSpaceSince] === this.ignoreSpaceUntil) { - termData.label = termData.label.slice(1, -1); + this.writePartialTerm(termData.label.slice(1, -1), this.input); + termData = super.readFullTerm(this.input, termIndex); - if (termData.label.length === 0) { + if (! termData) { return; } }