Skip to content

Commit c145f16

Browse files
committed
Button: Create text span in correct document.
1 parent 2f89f35 commit c145f16

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)