Replies: 1 comment
-
onDragEnd={e) => {
const { delta, active: { id } } = e;
setCoordinates(({ x, y }) => ({
x: x + delta.x,
y: y + delta.y,
}));
console.log(id);
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a few draggables in a DndContext. I want certain behavior to trigger
onDragEnd
of only certain draggables. I was going to check the ID of the draggable being dragged in onDragEnd but I'm not sure how to grab this information - does anyone know how?Beta Was this translation helpful? Give feedback.
All reactions