We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d03121 commit 7ceaa61Copy full SHA for 7ceaa61
1 file changed
ui/widgets/progressbar.js
@@ -117,13 +117,16 @@ return $.widget( "ui.progressbar", {
117
// Don't allow a max less than min
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 );
123
- }
124
this._super( key, value );
125
},
126
+ _setOptionDisabled: function( value ) {
+ this._super( value );
+
+ this.element.attr( "aria-disabled", value );
127
+ this._toggleClass( null, "ui-state-disabled", !!value );
128
+ },
129
130
_percentage: function() {
131
return this.indeterminate ? 100 : 100 * ( this.options.value - this.min ) / ( this.options.max - this.min );
132
0 commit comments