Skip to main content

Search and Top Navigation

#4253 closed bug (duplicate)

Opened March 01, 2009 03:38AM UTC

Closed February 28, 2013 01:21PM UTC

Sortable: ui.helper is null when receiving a draggable clone

Reported by: fosslin Owned by:
Priority: major Milestone: 2.0.0
Component: ui.sortable Version: 1.6rc6
Keywords: sortable, receive, callback, draggable Cc:
Blocked by: Blocking:
Description

take this for instance.. if i change from receive to stop or update it will work perfectly... but when having that 'receive' it doesn't do s*** (so).

$(".draggable").draggable({   
	connectToSortable:  '.sortable',
	helper: 'clone'
});			


$(".sortable").sortable({   
	receive : function(e,ui) {
		ui.item.text("hello there, litlle you..");
		}
       });
Attachments (0)
Change History (10)

Changed March 02, 2009 05:34PM UTC by fosslin comment:1

problem is:

ui.item is undefined when using callback receive from a draggable list. but not fram a sortable list!

Changed May 07, 2009 11:00AM UTC by jzaefferer comment:2

milestone: TBD1.7.2

Changed May 07, 2009 01:24PM UTC by jzaefferer comment:3

milestone: 1.7.21.8

Changed August 22, 2009 01:51PM UTC by paul comment:4

priority: minormajor

Changed February 10, 2011 02:10AM UTC by petersendidit comment:5

Changed October 11, 2012 02:54PM UTC by scottgonzalez comment:6

milestone: 1.9.02.0.0

Changed October 25, 2012 12:55AM UTC by petersendidit comment:7

status: newopen
summary: callback receive ain't receiving from draggableSortable: callback receive ain't receiving from draggable

Changed February 28, 2013 02:37AM UTC by tj.vantoll comment:8

resolution: → worksforme
status: openclosed

I cannot recreate this issue with neither the latest jQuery UI version nor the versions used in this ticket originally. It looks like the receive event has a populated

ui.item
property - http://jsfiddle.net/tj_vantoll/FKAuT/.

If anybody else can recreate this please let me know and I can reinvestigate.

Changed February 28, 2013 04:40AM UTC by scottgonzalez comment:9

resolution: worksforme
status: closedreopened
summary: Sortable: callback receive ain't receiving from draggableSortable: ui.helper is null when receiving a draggable clone

The problem is that ui.item refers to the original item and there is no way to reference the helper which is being added to the sortable. I'd updated your fiddle so that the text in ui.item changes on receive so that this is easy to see: http://jsfiddle.net/FKAuT/1/

Changed February 28, 2013 01:21PM UTC by tj.vantoll comment:10

resolution: → duplicate
status: reopenedclosed

Duplicate of #4303.