Ticket #2622 (closed bug: worksforme)
Multiple draggables and droppables, dynamically loaded
| Reported by: | mrmoosehead | Owned by: | braeker |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | ui | Version: | 1.2.3 |
| Keywords: | ui draggable droppable multiple | Cc: | |
| Blocking: | Blocked by: |
Description
I have a completely jquery driven site (PHP server side) - single host page, many ajax filled controls. Many of these ajaxed controls pull in common data with script tags at the end to create draggable and droppable img elements
Trouble is, as more of these draggables and droppables are introduced, the drag/drop code seems to get confused and queues up the information, and sometimes doubles up on the drop events.
Have tried isolating the classes and ids that have the draggable functionality imposed to avoid crossover and multiple declarations, but still seems to have problems.
UI version 1.0
Change History
comment:2 Changed 5 years ago by anoopr
I'm seeing the exact same issue. I'm using livequery to attach droppable behavior to dynamically loaded divs, and as more draggables are rendered onto the screen, I start getting multiple drop events all over the place.
comment:3 Changed 5 years ago by paul
This is hard to reproduce for us without a test case. Could you submit us a simple test case, maybe using livequery?
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
