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

Regression caused by a1d69208ba

Fixes #15042
Closes gh-1746
This commit is contained in:
Scott González 2016-09-14 09:42:46 -04:00
parent 391d45ea6c
commit 19027bb085

View File

@ -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 );