mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable: Revert flag honours Sortable revert speed. Fixed #9103 Draggable: revert option reset after being added to a connectedSortable.
This commit is contained in:
parent
bd47bd4ace
commit
a924af12b6
2
ui/jquery.ui.draggable.js
vendored
2
ui/jquery.ui.draggable.js
vendored
@ -600,7 +600,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
|
|||||||
|
|
||||||
//The sortable revert is supported, and we have to set a temporary dropped variable on the draggable to support revert: "valid/invalid"
|
//The sortable revert is supported, and we have to set a temporary dropped variable on the draggable to support revert: "valid/invalid"
|
||||||
if(this.shouldRevert) {
|
if(this.shouldRevert) {
|
||||||
this.instance.options.revert = true;
|
this.instance.options.revert = this.shouldRevert;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Trigger the stop of the sortable
|
//Trigger the stop of the sortable
|
||||||
|
Loading…
Reference in New Issue
Block a user