Skip to content

Commit c3dcf4e

Browse files
committed
Selectmenu: Remove broken tabindex code
(cherry picked from commit 1fb0879)
1 parent 7b4d706 commit c3dcf4e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ui/selectmenu.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ return $.widget( "ui.selectmenu", {
6767
},
6868

6969
_drawButton: function() {
70-
var that = this,
71-
tabindex = this.element.attr( "tabindex" );
70+
var that = this;
7271

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

0 commit comments

Comments
 (0)