Skip to content

Commit 35b4a7a

Browse files
committed
fixed: disable tab index when init from disabled select, thx to @gcko, see fnagel#136
1 parent edee0dc commit 35b4a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $.widget("ui.selectmenu", {
5252
'id' : this.ids[ 0 ],
5353
'role': 'button',
5454
'href': '#',
55-
'tabindex': '0' ,
55+
'tabindex': this.element.attr( 'disabled' ) ? 1 : 0,
5656
'aria-haspopup': true,
5757
'aria-owns': this.ids[ 1 ]
5858
});

0 commit comments

Comments
 (0)