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

Search tag position option #4008

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update the approach
Now the option is the function you want run to make it more flexible
  • Loading branch information
stretch4x4 committed Dec 10, 2015
commit 7276620fde0bd7c7123a9b7b7f7a128b5e715df0
6 changes: 6 additions & 0 deletions src/js/select2/data/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ define([
if (createTag !== undefined) {
this.createTag = createTag;
}

var insertTag = options.get('insertTag');

if (insertTag !== undefined) {
this.insertTag = insertTag;
}

decorated.call(this, $element, options);

Expand Down