dnd-kit
dnd-kit copied to clipboard
Final `ClientRect` coordinates for active draggable `null` in `onDragEnd` event handler
As mentioned in this discussion, it would be relevant to know the final location of the active draggable in the onDragEnd
handler for calculating absolute position. Before on the onDragEnd
event handler is invoked the values for event.active.rect.current.initial
and event.active.rect.current.translated
are set to null
, and location must be tracked using the onDragMove
handler.
@clauderic suggested that this is a bug and should be re-opened as an issue.
Thanks!
Is there any update on this issue, or an alternative way to calculate the final location of the active draggable element?
Access to the final coordinates of active
would be really useful!
I'm having the same problem
Same problem here
Any update on this issue? I am seeing this behavior in OnDragStart
and OnDragOver
as well in version 6.0.8
.
Same problem at version 6.1.0
.
I'm implementing multiple containers sorting and I think I need the active.rect to known if it's dropping over or below the target.