Skip to content

Commit 535ef2a

Browse files
hollis21scottgonzalez
authored andcommitted
Button: Trim button text before setting as title attribute.
1 parent 0fcf37f commit 535ef2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ $.widget( "ui.button", {
344344
buttonClasses.push( multipleIcons ? "ui-button-icons-only" : "ui-button-icon-only" );
345345

346346
if ( !this.hasTitle ) {
347-
buttonElement.attr( "title", buttonText );
347+
buttonElement.attr( "title", $.trim( buttonText ) );
348348
}
349349
}
350350
} else {

0 commit comments

Comments
 (0)