Skip to content

Commit a924af1

Browse files
steveuscottgonzalez
authored andcommitted
Draggable: Revert flag honours Sortable revert speed. Fixed #9103 Draggable: revert option reset after being added to a connectedSortable.
1 parent bd47bd4 commit a924af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.draggable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
600600

601601
//The sortable revert is supported, and we have to set a temporary dropped variable on the draggable to support revert: "valid/invalid"
602602
if(this.shouldRevert) {
603-
this.instance.options.revert = true;
603+
this.instance.options.revert = this.shouldRevert;
604604
}
605605

606606
//Trigger the stop of the sortable

0 commit comments

Comments
 (0)