Why when using the Select2 plugin, do not add the last value from an enumeration?

Use the Select2 plugin. When you add tags, separated by commas:
Dmitry, Alexey, Ivan

not added the latest value for "Ivan":
59db4c87dab06111731263.png

Code:
https://jsfiddle.net/smewokn6/

Can't understand why. Please tell me.

Video:
recordit.co/YB7PRkIIFR
June 14th 19 at 18:03
1 answer
June 14th 19 at 18:05
Paste Dmitry,Alexey,Ivan,
, enter to end a line while "Ivan" is a value adds. - devin.Huels commented on June 14th 19 at 18:14
how it is possible to do without added to the end of symbol? - devin.Huels commented on June 14th 19 at 18:08
but as he will understand that the tag is over? He needs one of the specified characters or Your player. - Abner32 commented on June 14th 19 at 18:11
, Otravlenie changes to the select and check if separator is not, build upon it themselves. - Abner32 commented on June 14th 19 at 18:17
enter at the end of the line while "Ivan" is a value adds.

The string must have the same separators. - Abner32 commented on June 14th 19 at 18:20

Find more questions by tags jQuery