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)
Change History (4)
Changed December 30, 2009 12:49AM UTC by comment:1
milestone: | TBD → 1.8 |
---|
Changed March 18, 2010 09:56PM UTC by 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 comment:3
milestone: | 1.9.0 → 2.0.0 |
---|
Changed October 26, 2012 04:27AM UTC by comment:4
resolution: | → worksforme |
---|---|
status: | new → closed |
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!