Skip to content

Commit 465c4c2

Browse files
committed
Sortable: pass a fake event object to _mouseUp on cancel. Fixes #5882 - UI.Sortable .sortable( cancel ) call the this._mouseUp method without param.
(cherry picked from commit cf0c32f)
1 parent 904548d commit 465c4c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ $.widget("ui.sortable", $.ui.mouse, {
360360

361361
if(this.dragging) {
362362

363-
this._mouseUp();
363+
this._mouseUp({ target: null });
364364

365365
if(this.options.helper == "original")
366366
this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");

0 commit comments

Comments
 (0)