docs icon indicating copy to clipboard operation
docs copied to clipboard

Question, how i possibile click a item without move it?

Open ghost opened this issue 2 years ago • 2 comments

How is possibile click a item without moving it and trigger the drag and drop?

let's say, I have a card with two buttons, I can't click on the buttons because the card moves so i can't trigger functions from these button.. how i can do this?

ghost avatar May 02 '23 20:05 ghost

For button in the card, you could probbaly use absolute positionning and z-index to force the button ontop of the draggable part. I have the same question, but in my case, the card (a playing card) is a checkbox behind the scenes. I would like to be able to drag the card, but only click and "check" it.

katima-g33k avatar Jun 03 '24 00:06 katima-g33k

Maybe this answers your question. https://github.com/clauderic/dnd-kit/issues/591

marvinoffers avatar Aug 01 '24 11:08 marvinoffers