aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/button.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widgets/button.js')
-rw-r--r--ui/widgets/button.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/widgets/button.js b/ui/widgets/button.js
index 34a2afa40..bdba5bcb0 100644
--- a/ui/widgets/button.js
+++ b/ui/widgets/button.js
@@ -121,7 +121,9 @@ $.widget( "ui.button", {
},
_enhance: function() {
- this.element.attr( "role", "button" );
+ if ( !this.element.is( "button" ) ) {
+ this.element.attr( "role", "button" );
+ }
if ( this.options.icon ) {
this._updateIcon( "icon", this.options.icon );