Skip to content

Commit 5bdcacd

Browse files
Fixed #3454 - Sortable .createHelper() bug
1 parent 7c2e796 commit 5bdcacd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/ui.sortable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
390390

391391
},
392392

393-
createHelper: function() {
393+
createHelper: function(e) {
394394

395395
var o = this.options;
396396
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, {
411411
this.refreshPositions();
412412

413413
//Create and append the visible helper
414-
this.helper = this.createHelper();
414+
this.helper = this.createHelper(e);
415415

416416
/*
417417
* - Position generation -

0 commit comments

Comments
 (0)