Permalink
Browse files

Sortable: Use an event object for simulated `mouseup` in `cancel()`

Regression caused by a1d6920

Fixes #15042
Closes gh-1746
  • Loading branch information...
1 parent 391d45e commit 19027bb0852a8f26627ef5584e6dde77df9fd0df @scottgonzalez scottgonzalez committed Sep 14, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 );

0 comments on commit 19027bb

Please sign in to comment.