Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of https://github.com/ivaynberg/select2

  • Loading branch information...
commit c8d700af92ba08a4611eee3f686b69ef7b9483dd 2 parents fdc9c12 + 732ad03
Jesper Rønn-Jensen authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 select2.js
View
10 select2.js
@@ -1502,7 +1502,15 @@
}));
this.search.bind("blur", this.bind(function() {
if (!this.opened()) this.container.removeClass("select2-container-active");
- window.setTimeout(this.bind(function() { this.selection.attr("tabIndex", this.opts.element.attr("tabIndex")); }), 10);
+ window.setTimeout(this.bind(function() {
+ // restore original tab index
+ var ti=this.opts.element.attr("tabIndex");
+ if (ti) {
+ this.selection.attr("tabIndex", ti);
+ } else {
+ this.selection.removeAttr("tabIndex");
+ }
+ }), 10);
}));
selection.delegate("abbr", "mousedown", this.bind(function (e) {
Please sign in to comment.
Something went wrong with that request. Please try again.