Skip to content

Commit cf0c32f

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.
1 parent 30c9473 commit cf0c32f

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
@@ -359,7 +359,7 @@ $.widget("ui.sortable", $.ui.mouse, {
359359

360360
if(this.dragging) {
361361

362-
this._mouseUp();
362+
this._mouseUp({ target: null });
363363

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

0 commit comments

Comments
 (0)