]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: wrong property value on aria-disabled when option is disabled by HTML
authorFelix Nagel <info@felixnagel.com>
Mon, 16 Sep 2013 20:22:26 +0000 (22:22 +0200)
committerFelix Nagel <info@felixnagel.com>
Mon, 16 Sep 2013 20:22:26 +0000 (22:22 +0200)
ui/jquery.ui.selectmenu.js

index 029afce0ffe51c03efa55fe9dd814effd8332f2e..1f7db15b931f313e9a1a17f1a93bbef5fc1ec91c 100644 (file)
@@ -307,7 +307,7 @@ $.widget("ui.selectmenu", {
                                        'aria-selected' : false
                                };
                                if ( selectOptionData[ i ].disabled ) {
-                                       thisAAttr[ 'aria-disabled' ] = selectOptionData[ i ].disabled;
+                                       thisAAttr[ 'aria-disabled' ] = true;
                                }
                                if ( selectOptionData[ i ].typeahead ) {
                                        thisAAttr[ 'typeahead' ] = selectOptionData[ i ].typeahead;