We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c11ed7 commit 732ad03Copy full SHA for 732ad03
1 file changed
select2.js
@@ -1502,7 +1502,15 @@
1502
}));
1503
this.search.bind("blur", this.bind(function() {
1504
if (!this.opened()) this.container.removeClass("select2-container-active");
1505
- window.setTimeout(this.bind(function() { this.selection.attr("tabIndex", this.opts.element.attr("tabIndex")); }), 10);
+ window.setTimeout(this.bind(function() {
1506
+ // restore original tab index
1507
+ var ti=this.opts.element.attr("tabIndex");
1508
+ if (ti) {
1509
+ this.selection.attr("tabIndex", ti);
1510
+ } else {
1511
+ this.selection.removeAttr("tabIndex");
1512
+ }
1513
+ }), 10);
1514
1515
1516
selection.delegate("abbr", "mousedown", this.bind(function (e) {
0 commit comments