We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4fbf91 commit c65355eCopy full SHA for c65355e
1 file changed
select2.js
@@ -1266,11 +1266,16 @@
1266
1267
// abstract
1268
focusSearch: function () {
1269
+ // need to do it here as well as in timeout so it works in IE
1270
+ this.search.show();
1271
+ this.search.focus();
1272
+
1273
/* we do this in a timeout so that current event processing can complete before this code is executed.
1274
this makes sure the search field is focussed even if the current event would blur it */
1275
window.setTimeout(this.bind(function () {
- this.search.focus();
1276
// reset the value so IE places the cursor at the end of the input box
1277
1278
1279
this.search.val(this.search.val());
1280
}), 10);
1281
},
0 commit comments