mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Selectmenu: simplify tabindex attribute setting on button create
This commit is contained in:
parent
68c7485ed9
commit
b84cd7e686
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@ -74,7 +74,7 @@ $.widget( "ui.selectmenu", {
|
|||||||
// Create button
|
// Create button
|
||||||
this.button = $( "<span>", {
|
this.button = $( "<span>", {
|
||||||
"class": "ui-selectmenu-button ui-widget ui-state-default ui-corner-all",
|
"class": "ui-selectmenu-button ui-widget ui-state-default ui-corner-all",
|
||||||
tabindex: ( tabindex ? tabindex : this.options.disabled ? -1 : 0 ),
|
tabindex: tabindex || this.options.disabled ? -1 : 0,
|
||||||
id: this.ids.button,
|
id: this.ids.button,
|
||||||
width: this.element.outerWidth(),
|
width: this.element.outerWidth(),
|
||||||
role: "combobox",
|
role: "combobox",
|
||||||
|
Loading…
Reference in New Issue
Block a user