Opened 12 years ago

Closed 12 years ago

#5100 closed defect (fixed)

DnD overSource() sometimes called onDndStart()

Reported by: mcbenton Owned by: Eugene Lazutkin
Priority: high Milestone: 1.0.2
Component: DnD Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description

If accept and dndType attributes have been set on dojo.dnd.Source and dojoDndItem objects respectively, then whenever one of the Source objects on the page is reordered, without moving objects from one Source to another, the dojo.dnd.Manager().overSource() function is called on line 206 of dojo.dnd.Source as part of the onDndStart() function that is called in response to the "/dnd/start" event which is subscribed to on line 79. The event fires for all Source objects on the page in the order in which they were declared, with the net effect that the dojo.dnd.Manager().target property gets set to the last Source object to be declared, regardless of whether or not it is actually the real recipient of the subsequent "/dnd/drop" event that follows.

Attachments (1)

dndtest.html (1.9 KB) - added by mcbenton 12 years ago.
This code demonstrates the bug documented in #51000

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by mcbenton

Attachment: dndtest.html added

This code demonstrates the bug documented in #51000

comment:1 Changed 12 years ago by Eugene Lazutkin

Milestone: 1.0.1
Status: newassigned

comment:2 Changed 12 years ago by Adam Peller

Milestone: 1.0.11.0.2

comment:3 Changed 12 years ago by Eugene Lazutkin

Resolution: fixed
Status: assignedclosed

#5268 is a dup of this ticket. The problem was fixed in [11663].

Note: See TracTickets for help on using tickets.