Skip to content

Commit 4657bd8

Browse files
committed
Changed widget factory to keep generic css framework class -state-disabled in ui namespace instead of custom widget namespace. Fixes #5443 - $.Widget uses [namespace]-state-disabled, must be ui-state-disabled to be useful
1 parent c49be0b commit 4657bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.widget.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ $.Widget.prototype = {
155155
.removeAttr( "aria-disabled" )
156156
.removeClass(
157157
this.widgetBaseClass + "-disabled " +
158-
this.namespace + "-state-disabled" );
158+
"ui-state-disabled" );
159159
},
160160

161161
widget: function() {
@@ -192,7 +192,7 @@ $.Widget.prototype = {
192192
this.widget()
193193
[ value ? "addClass" : "removeClass"](
194194
this.widgetBaseClass + "-disabled" + " " +
195-
this.namespace + "-state-disabled" )
195+
"ui-state-disabled" )
196196
.attr( "aria-disabled", value );
197197
}
198198

0 commit comments

Comments
 (0)