mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion: Handle disabled option on create, through _setOptionDisabled
Ref #9151 Ref gh-1599
This commit is contained in:
parent
7dde5c9d75
commit
874b4a0316
@ -174,17 +174,19 @@ return $.widget( "ui.accordion", {
|
||||
this._createIcons();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
_setOptionDisabled: function( value ) {
|
||||
this._super( value );
|
||||
|
||||
this.element.attr( "aria-disabled", value );
|
||||
|
||||
// Support: IE8 Only
|
||||
// #5332 / #6059 - opacity doesn't cascade to positioned elements in IE
|
||||
// so we need to add the disabled class to the headers and panels
|
||||
if ( key === "disabled" ) {
|
||||
this.element.attr( "aria-disabled", value );
|
||||
|
||||
this._toggleClass( null, "ui-state-disabled", !!value );
|
||||
this._toggleClass( this.headers.add( this.headers.next() ), null, "ui-state-disabled",
|
||||
!!value );
|
||||
}
|
||||
},
|
||||
|
||||
_keydown: function( event ) {
|
||||
|
Loading…
Reference in New Issue
Block a user