diff --git a/src/scripts/choices.ts b/src/scripts/choices.ts index f15efa2b..f2a8d442 100644 --- a/src/scripts/choices.ts +++ b/src/scripts/choices.ts @@ -1793,7 +1793,10 @@ class Choices { return; } - this._addChoice(mapInputToChoice(value, false, this.config.allowHtmlUserInput), true, true); + value.split(this.config.delimiter) + .map((e: string) => mapInputToChoice(e.trim(), false, this.config.allowHtmlUserInput)) + .forEach((elementItem: ChoiceFull) => this._addChoice(elementItem, true, true)); + addedItem = true; }