From: Felix Nagel Date: Sat, 7 Sep 2013 17:23:31 +0000 (+0200) Subject: fixed: disabled select is tab-able, see #301 X-Git-Tag: selectmenu_v1.4.0~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=66fd8ec68bb0e072d313f9bd4906631b25689ad7;p=jquery-ui.git fixed: disabled select is tab-able, see #301 --- diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 870f27b55..029afce0f 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -703,13 +703,13 @@ $.widget("ui.selectmenu", { _setOption: function( key, value ) { this.options[ key ] = value; - // set if ( key == 'disabled' ) { if ( value ) this.close(); this.element .add( this.newelement ) .add( this.list )[ value ? 'addClass' : 'removeClass' ]( 'ui-selectmenu-disabled ' + 'ui-state-disabled' ) - .attr( "aria-disabled" , value ); + .attr( "aria-disabled" , value ) + .attr( "tabindex" , value ? 1 : 0 ); } },