Skip to content

Commit 9990013

Browse files
committed
Draggable Unit: Fixes for appendTo
1 parent e530510 commit 9990013

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/unit/draggable/draggable_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test("{ appendTo: 'parent' }, default", function() {
4545

4646
TestHelpers.draggable.trackAppendedParent(el);
4747

48-
equal( el.draggable( "option", "appendTo" ), "parent" );
48+
equal( el.draggable( "option", "appendTo" ), null );
4949

5050
TestHelpers.draggable.move(el, 1, 1);
5151
equal( el.data("last_dragged_parent"), $("#qunit-fixture")[0] );

ui/jquery.ui.draggable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ if ( $.uiBackCompat !== false ) {
568568

569569
var el = this.options.appendTo;
570570

571-
if ( el === "parent" ) {
571+
if ( el === "parent" || el === null ) {
572572
el = this.dragEl.parent();
573573
}
574574

0 commit comments

Comments
 (0)