ui-select2 icon indicating copy to clipboard operation
ui-select2 copied to clipboard

provide API for setting focus

Open lanterndev opened this issue 12 years ago • 1 comments

Currently I don't think there's a way to programmatically / declaratively set the focus to a select2 instance on some event or from inside a watch function, so you have to do something like $('#mySelect2').select2('focus', true) where mySelect2 is something like <input type="hidden" id="mySelect2" ui-select2="select2opts" ...>.

lanterndev avatar Aug 19 '13 20:08 lanterndev

not sure if they changed select2 or what but to focus select2 it is now:

$('#mySelect2').select2('open');
 //old code $('#mySelect2').select2('focus', true);

d0coat01 avatar Sep 02 '15 00:09 d0coat01