Skip to main content

Search and Top Navigation

#5019 closed bug (worksforme)

Opened December 21, 2009 04:00PM UTC

Closed October 26, 2012 04:27AM UTC

connectToSortable fails if sortable is applied before element was appended to document

Reported by: FND Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.draggable Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

Steps to reproduce:

  • dynamically construct a list, applying
    .sortable()
    ''before'' the list is added to the document
  • add draggable elements with
    connectToSortable
    targeting this list
  • drag element onto list -- this will fail
  • sort list, then drag element onto list -- this will succeed
Attachments (1)
  • testcase.html (1.2 KB) - added by FND December 21, 2009 04:01PM UTC.
Change History (4)

Changed December 30, 2009 12:49AM UTC by scottgonzalez comment:1

milestone: TBD1.8

Changed March 18, 2010 09:56PM UTC by flashylight comment:2

At jquery.ui.draggable.js in line 538, it uses this.instance.containerCache , and its values are not updated with the latest.

Changed October 11, 2012 02:49PM UTC by scottgonzalez comment:3

milestone: 1.9.02.0.0

Changed October 26, 2012 04:27AM UTC by mikesherov comment:4

resolution: → worksforme
status: newclosed

Thanks for taking the time to contribute to the jQuery UI project! I can no longer reproduce the issue using the latest jQuery and jQuery UI. http://jsfiddle.net/s8Uhz/2/

If you can still reproduce it, please feel free to reply to this ticket with a test case showing the problem. Thanks!