phamios
phamios
I have the same problem of Select2 4.0.0 I dont know how to disable sort when I select the items. anyone have any ideas ?
$("select").select2({ tags: true }); $("select").on("select2:select", function (evt) { var element = evt.params.data.element; var $element = $(element); $element.detach(); $(this).append($element); $(this).trigger("change"); }); I solved this problem :)
``` $("select").select2({ ``` tags: true }); $("select").on("select2:select", function (evt) { var element = evt.params.data.element; var $element = $(element); $element.detach(); $(this).append($element); $(this).trigger("change"); });
how to fix ? I got the same problem