I think this worked in a previous version, but I’m not sure.
After selecting the first element in a multiple select, it becomes unfocused – not even the next field. returns back to the select element, but previously the focus stayed on that element.
I put together a demo site showing this:
(It’s a free heroku dyno, may take several seconds to start).
Configuration is pretty much out of the box, a bunch of data attributes on the select element.
select id=“single_select_form_countries” class=“js-select2 select2entity form-control select2-hidden-accessible” data-ajax–url="/country_autocomplete.json?page_limit=10"
data-ajax–cache=“false”
data-ajax–cache-timeout=“1”
data-ajax–delay=“0”
data-ajax–data-type=“json”
data-language=“en”
data-minimum-input-length=“1”
data-placeholder=“Select Multiple Countries”
data-page-limit=“10”
data-scroll=“false”
data-autostart=“true”
data-name=“countries”
multiple=""
data-allow-clear=“true”
data-select2-id=“single_select_form_countries”
and the javascript is a simple init, since the data tags have everything needed.
$(’.js-select2’).select2({});
Thanks.