Skip to content

Commit 38af478

Browse files
author
bgrins
committed
Updated references to "document" to the "ownerDocument" to allow dragging of element inside iframe,
fixes #5727 (Draggable: cannot drag element inside iframe)
1 parent eb13c01 commit 38af478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ $.fn.extend({
153153
}).eq(0);
154154
}
155155

156-
return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent;
156+
return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(this[0].ownerDocument || document) : scrollParent;
157157
},
158158

159159
zIndex: function(zIndex) {

0 commit comments

Comments
 (0)