]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: disabled select is tab-able, see #301
authorFelix Nagel <info@felixnagel.com>
Sat, 7 Sep 2013 17:23:31 +0000 (19:23 +0200)
committerFelix Nagel <info@felixnagel.com>
Sat, 7 Sep 2013 17:23:31 +0000 (19:23 +0200)
ui/jquery.ui.selectmenu.js

index 870f27b55c9f7db84b49cb6780eebdfd55bf103a..029afce0ffe51c03efa55fe9dd814effd8332f2e 100644 (file)
@@ -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 );
                }
        },