All:
I have a select element (single) configured for select2 as follows:
$(#mySelect).select2({
tags: true,
tokenSeparators: [',']
});
I have tags set to 'true' to allow end-users to add their own values to the list.
Everything works fine except for values that contains spaces, the space key is not allowed even though I do not have it in the list of tokenSeparators.
Typing in single word values and hitting a comma; everything works as advertised in the documentation. But, the minute you want to use a space (e.g. New York) the space is not allowed and I don't see any errors in the debugger.
Any ideas what may happening here?
Thanks for your time.
-Matt-