Skip to main content

Search and Top Navigation

#7567 closed bug (worksforme)

Opened July 19, 2011 03:20PM UTC

Closed July 19, 2011 04:10PM UTC

Last modified July 19, 2011 06:32PM UTC

sortable loses "id" attribute in "stop" introduced in jquery-ui 1.8.13

Reported by: volcano Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.draggable Version: 1.8.14
Keywords: Cc:
Blocked by: Blocking:

After upgrading jquery-ui to 1.8.14, when I drag a <div>, I noticed the following bug (see comments)

 // ...
 start: function (e, ui) {
   var id1 = ui.item.attr('id');
   // id1 is correct
 stop: function (e, ui) {
   var id2 = ui.item.attr('id');
   // id2 is null

As shown in the comments, id2 is null but I expect id2 to be the correct 'id' attribute of the <div>

I downgraded to 1.8.13 and the bug was still there. However 1.8.12 does NOT have the bug.

Attachments (0)
Change History (4)

Changed July 19, 2011 04:10PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

Changed July 19, 2011 04:12PM UTC by scottgonzalez comment:2

see #7524 and #4564

Changed July 19, 2011 06:31PM UTC by volcano comment:3

I made an example to illustrate the problem:

This example uses 1.8.14 and shows that the "id" attribute is being lost when the element is dragged from the upper list to the bottom list. If you change the version to 1.8.12, it will NOT lose the "id".

Changed July 19, 2011 06:32PM UTC by scottgonzalez comment:4

As I said, go look at the other tickets, this is invalid.