aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/sortable.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2016-09-14 09:42:46 -0400
committerScott González <scott.gonzalez@gmail.com>2016-09-14 12:06:33 -0400
commit19027bb0852a8f26627ef5584e6dde77df9fd0df (patch)
tree810c7a745bdceb1ac8a4e45daef5cb64b9edf9bd /ui/widgets/sortable.js
parent391d45ea6cf985a980d5972489162a60d601eb1a (diff)
downloadjquery-ui-19027bb0852a8f26627ef5584e6dde77df9fd0df.tar.gz
jquery-ui-19027bb0852a8f26627ef5584e6dde77df9fd0df.zip
Sortable: Use an event object for simulated `mouseup` in `cancel()`
Regression caused by a1d69208bad175a27c7b50c27fdc10001563cd4d Fixes #15042 Closes gh-1746
Diffstat (limited to 'ui/widgets/sortable.js')
-rw-r--r--ui/widgets/sortable.js2
1 files changed, 1 insertions, 1 deletions
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 );