Skip to content

Commit 39e75ad

Browse files
committed
Button: Create text span in correct document.
(cherry picked from commit c145f16)
1 parent eee4db7 commit 39e75ad

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
@@ -319,7 +319,7 @@ $.widget( "ui.button", {
319319
return;
320320
}
321321
var buttonElement = this.buttonElement.removeClass( typeClasses ),
322-
buttonText = $( "<span></span>" )
322+
buttonText = $( "<span></span>", this.element[0].ownerDocument )
323323
.addClass( "ui-button-text" )
324324
.html( this.options.label )
325325
.appendTo( buttonElement.empty() )

0 commit comments

Comments
 (0)