Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Selectmenu: add ui-state-disabled and aria-disabled manually as its r…

…emoved from Widget, see 44d0717
  • Loading branch information...
commit ba0e8040f0bfe9ea87d208d0b2a6a81bfd4f3236 1 parent 1ce8d87
@fnagel fnagel authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 ui/jquery.ui.selectmenu.js
View
4 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 );
Please sign in to comment.
Something went wrong with that request. Please try again.