mirror of
https://github.com/Choices-js/Choices.git
synced 2026-03-14 14:45:47 +01:00
Merge 8ee9430a40 into c7f220f282
This commit is contained in:
commit
08f3239297
1 changed files with 4 additions and 1 deletions
|
|
@ -1793,7 +1793,10 @@ class Choices {
|
|||
return;
|
||||
}
|
||||
|
||||
this._addChoice(mapInputToChoice<string>(value, false, this.config.allowHtmlUserInput), true, true);
|
||||
value.split(this.config.delimiter)
|
||||
.map((e: string) => mapInputToChoice<string>(e.trim(), false, this.config.allowHtmlUserInput))
|
||||
.forEach((elementItem: ChoiceFull) => this._addChoice(elementItem, true, true));
|
||||
|
||||
addedItem = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue