We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb5374a commit 92adcb2Copy full SHA for 92adcb2
ui/widgets/progressbar.js
@@ -118,12 +118,18 @@ return $.widget( "ui.progressbar", {
118
value = Math.max( this.min, value );
119
}
120
if ( key === "disabled" ) {
121
- this.element.attr( "aria-disabled", value );
122
- this._toggleClass( null, "ui-state-disabled", !!value );
+ this._setOptionDisabled( value );
123
124
this._super( key, value );
125
},
126
+ _setOptionDisabled: function( value ) {
127
+ this._super( value );
128
+
129
+ this.element.attr( "aria-disabled", value );
130
+ this._toggleClass( null, "ui-state-disabled", !!value );
131
+ },
132
133
_percentage: function() {
134
return this.indeterminate ? 100 : 100 * ( this.options.value - this.min ) / ( this.options.max - this.min );
135
0 commit comments