Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createSearchChoicePosition removed in select2 4.0 withour replacement #3420

Closed
kreintjes opened this issue May 28, 2015 · 2 comments
Closed

Comments

@kreintjes
Copy link

I know the createSearchChoice option is replaced by the createTag option in select2 4.0. However, the old createSearchChoicePosition option seems to be completely removed without replacement (createTagPosition does not work).

Am I correct and if so, any plans on restoring this option?

@kevin-brown
Copy link
Member

This is exposed as the internal insertTag method on the tags decorator, but it is not yet exposed through the options when initialzing Select2.

@kreintjes
Copy link
Author

Thanks for the quick reply. So for now it is not possible to override it yet, but it will be in the (near) future?

stretch4x4 added a commit to stretch4x4/select2 that referenced this issue Dec 9, 2015
Fix for: createSearchChoicePosition removed in select2 4.0 withour
replacement select2#3420
Now there is an option to specify whether the new tag appears at the top
or bottom of the list
tzellman pushed a commit to tzellman/select2 that referenced this issue Feb 2, 2016
This adds an option called `insertTag` that controls the location within
the results where the tag is inserted. The function should take in the
results array and the tag, and should modify the array in-place to add
the tag to the results.

This closes select2#3420
This closes select2#4008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants