1
0
mirror of synced 2024-11-30 00:26:03 +03:00
select2/src/js
Kevin Brown 49589611ee Handle null being returned from createTag
The `createTag` option does allow for `null` to be returned if a
tag should not be created. The tokenizer previously didn't support
this, so the tokenizer should be able to handle this case. Previously
it would trigger an exception, because the tokenizer would pass back
a null value to the select function.

This also fixes what would have been a potential bug where even if a
tag was not created, the term would still have been sliced at the
location of the token. This allows for tokenizers to have special
cases when tokenizing the term, such as not splittting a token
if it is in the middle of a quoted string.

This closes https://github.com/select2/select2/issues/3593
This closes https://github.com/select2/select2/pull/3591
2015-08-21 19:12:13 -04:00
..
select2 Handle null being returned from createTag 2015-08-21 19:12:13 -04:00
banner.end.js Overhaul of the AMD integration 2015-03-14 19:05:24 -04:00
banner.start.js Overhaul of the AMD integration 2015-03-14 19:05:24 -04:00
jquery.mousewheel.shim.js fix error: "Uncaught ReferenceError: require is not defined" 2015-04-02 10:29:22 -04:00
jquery.select2.js Warn when Select2 is called without being initalized 2015-04-02 11:41:18 -04:00
jquery.shim.js Fix undefined variables 2015-02-13 22:49:54 -05:00
wrapper.end.js Fix TypeError 2015-03-18 10:48:47 -04:00
wrapper.start.js Overhaul of the AMD integration 2015-03-14 19:05:24 -04:00