mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixed #3454 - Sortable .createHelper() bug
This commit is contained in:
parent
7c2e7965e9
commit
5bdcacd1f6
@ -390,7 +390,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
|
||||
|
||||
},
|
||||
|
||||
createHelper: function() {
|
||||
createHelper: function(e) {
|
||||
|
||||
var o = this.options;
|
||||
var helper = typeof o.helper == 'function' ? $(o.helper.apply(this.element[0], [e, this.currentItem])) : (o.helper == "original" ? this.currentItem : this.currentItem.clone());
|
||||
@ -411,7 +411,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
|
||||
this.refreshPositions();
|
||||
|
||||
//Create and append the visible helper
|
||||
this.helper = this.createHelper();
|
||||
this.helper = this.createHelper(e);
|
||||
|
||||
/*
|
||||
* - Position generation -
|
||||
|
Loading…
Reference in New Issue
Block a user