mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Sortable: pass a fake event object to _mouseUp on cancel. Fixes #5882 - UI.Sortable .sortable( cancel ) call the this._mouseUp method without param.
(cherry picked from commit cf0c32f335
)
This commit is contained in:
parent
904548d5b7
commit
465c4c2cbe
2
ui/jquery.ui.sortable.js
vendored
2
ui/jquery.ui.sortable.js
vendored
@ -360,7 +360,7 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|||||||
|
|
||||||
if(this.dragging) {
|
if(this.dragging) {
|
||||||
|
|
||||||
this._mouseUp();
|
this._mouseUp({ target: null });
|
||||||
|
|
||||||
if(this.options.helper == "original")
|
if(this.options.helper == "original")
|
||||||
this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");
|
this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");
|
||||||
|
Loading…
Reference in New Issue
Block a user