mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: Remove broken tabindex code
(cherry picked from commit 1fb08790a6
)
This commit is contained in:
parent
7b4d70635c
commit
c3dcf4eacc
@ -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 );
|
||||
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user