Skip to content

Commit

Permalink
Selectmenu: Remove broken tabindex code
Browse files Browse the repository at this point in the history
(cherry picked from commit 1fb0879)
  • Loading branch information
scottgonzalez committed Feb 5, 2015
1 parent 7b4d706 commit c3dcf4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/selectmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ return $.widget( "ui.selectmenu", {
},

_drawButton: function() {
var that = this,
tabindex = this.element.attr( "tabindex" );
var that = this;

// Associate existing label with the new button
this.label = $( "label[for='" + this.ids.element + "']" ).attr( "for", this.ids.button );
Expand All @@ -85,7 +84,7 @@ return $.widget( "ui.selectmenu", {
// Create button
this.button = $( "<span>", {
"class": "ui-selectmenu-button ui-widget ui-state-default ui-corner-all",
tabindex: tabindex || this.options.disabled ? -1 : 0,
tabindex: this.options.disabled ? -1 : 0,
id: this.ids.button,
role: "combobox",
"aria-expanded": "false",
Expand Down

0 comments on commit c3dcf4e

Please sign in to comment.