From ba0e8040f0bfe9ea87d208d0b2a6a81bfd4f3236 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Tue, 19 Mar 2013 20:16:22 +0100 Subject: [PATCH] Selectmenu: add ui-state-disabled and aria-disabled manually as its removed from Widget, see 44d07173db32b498e5f83f60db290ff1463daee3 --- ui/jquery.ui.selectmenu.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 01a9b229c..7e3dcb966 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -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 );