Selectmenu: add ui-state-disabled and aria-disabled manually as its removed from Widget, see 44d07173db

This commit is contained in:
Felix Nagel 2013-03-19 20:16:22 +01:00
parent 1ce8d87f8b
commit ba0e8040f0

View File

@ -393,6 +393,10 @@ $.widget( "ui.selectmenu", {
}
if ( key === "disabled" ) {
this.menu.menu( "option", "disabled", value );
this.button
.toggleClass( "ui-state-disabled", !!value )
.attr( "aria-disabled", value );
if ( value ) {
this.element.attr( "disabled", "disabled" );
this.button.attr( "tabindex", -1 );