Can anyone offer any advice on this? I've been having trouble with the .select2-focusser element that is dynamically created - it seems to steal focus back even when I use on('change') to set focus to the next element.
Thank you for your help!
I've tried hooking the close event and in the callback executing something like:
$('.select2-container').removeClass('select2-container-active')
But it has no effect, as the focusser runs after this event.
Thanks,
Bill
Did you ever find a fix for this? I'm still stuck. I put this line in the change callback of my select2 element, which I can see getting hit by stepping through in the debugger but the focus call has no effect:
idSelector.on('change', function(event) {
$('#input-column').focus();
}
});
Thanks,
Bill
$("#my_id").select2();
$("#my_id").next(".select2").find(".select2-selection").focus(function() {
$("#my_id").select2("open");
});