From 19027bb0852a8f26627ef5584e6dde77df9fd0df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 14 Sep 2016 09:42:46 -0400 Subject: [PATCH] Sortable: Use an event object for simulated `mouseup` in `cancel()` Regression caused by a1d69208bad175a27c7b50c27fdc10001563cd4d Fixes #15042 Closes gh-1746 --- ui/widgets/sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/sortable.js b/ui/widgets/sortable.js index 2a9ce22ca..8d2ada59a 100644 --- a/ui/widgets/sortable.js +++ b/ui/widgets/sortable.js @@ -518,7 +518,7 @@ return $.widget( "ui.sortable", $.ui.mouse, { if ( this.dragging ) { - this._mouseUp( { target: null } ); + this._mouseUp( new $.Event( "mouseup", { target: null } ) ); if ( this.options.helper === "original" ) { this.currentItem.css( this._storedCSS ); -- 2.39.5