Bug Tracker

Modify

Ticket #2622 (closed bug: worksforme)

Opened 5 years ago

Last modified 5 years ago

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:1 Changed 5 years ago by paul

  • Owner changed from paul to codesquare

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?

comment:4 Changed 5 years ago by paul

  • Owner changed from codesquare to braeker
  • Priority changed from major to minor

comment:5 Changed 5 years ago by braeker

  • Status changed from new to closed
  • Resolution set to worksforme

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.