I'm trying to use the tags in Select2. I want to give the user the ability to load some known tags and sometimes to add new, if he wants.
The problem is that Select2 give me the option to add new tags only in new SELECT field. If your'e preloading some data to the field and pre-selecting it - you are losing that ability.
Here there is an example of the problem:
//The problem is in the next line
OK, finally I got it.
select2() function re-initialize the script. But if you are re-sending the
tags attribute, you are also re-enabling that ability.