Skip to content

Commit 19027bb

Browse files
committed
Sortable: Use an event object for simulated mouseup in cancel()
Regression caused by a1d6920 Fixes #15042 Closes jquerygh-1746
1 parent 391d45e commit 19027bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/widgets/sortable.js

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

519519
if ( this.dragging ) {
520520

521-
this._mouseUp( { target: null } );
521+
this._mouseUp( new $.Event( "mouseup", { target: null } ) );
522522

523523
if ( this.options.helper === "original" ) {
524524
this.currentItem.css( this._storedCSS );

0 commit comments

Comments
 (0)