What is the equivalent of nextSearchTerm in select2 v4?

16 views
Skip to first unread message

laur...@gmail.com

unread,
Jun 3, 2016, 5:41:37 PM6/3/16
to select2
I realize that this question has been raised before, but I couldn't find an answer.

Currently, my multiple selector looks like this:

$("#id").select2({
closeOnSelect: false,
nextSearchTerm: "",
tokenSeparators: ['/n']
});

I'd like the dropdown to remain open after something is chosen, but I'd also like the typed search field to be cleared after the user hits enter.

In the previous version of select2, we could use nextSearchTerm to clear the search field in the multiple select boxes by setting nextSearchTerm to "" or something similar. But nextSearchTerm doesn't seem to exist in v4, or am I mistaken in it's functions?

Thanks!

Jeff Conklin

unread,
Jun 3, 2016, 5:56:19 PM6/3/16
to select2, laur...@gmail.com
I am looking for something similar. Would be nice to see if anyone has a solution. Thank you for posting the question.
Reply all
Reply to author
Forward
0 new messages