Skip to content

Commit add7844

Browse files
committed
Button: Typos
1 parent 754e041 commit add7844

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/widgets/button.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ $.widget( "ui.button", {
121121
},
122122

123123
_enhance: function() {
124-
this.element.attr( "role", "button" );
124+
if ( !this.element.is( "button" ) ) {
125+
this.element.attr( "role", "button" );
126+
}
125127

126128
if ( this.options.icon ) {
127129
this._updateIcon( "icon", this.options.icon );

0 commit comments

Comments
 (0)