Skip to content

Commit 66fd8ec

Browse files
committed
fixed: disabled select is tab-able, see #301
1 parent 3cfaeac commit 66fd8ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,13 +703,13 @@ $.widget("ui.selectmenu", {
703703

704704
_setOption: function( key, value ) {
705705
this.options[ key ] = value;
706-
// set
707706
if ( key == 'disabled' ) {
708707
if ( value ) this.close();
709708
this.element
710709
.add( this.newelement )
711710
.add( this.list )[ value ? 'addClass' : 'removeClass' ]( 'ui-selectmenu-disabled ' + 'ui-state-disabled' )
712-
.attr( "aria-disabled" , value );
711+
.attr( "aria-disabled" , value )
712+
.attr( "tabindex" , value ? 1 : 0 );
713713
}
714714
},
715715

0 commit comments

Comments
 (0)