Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mantegnous opened this issue May 2, 2023 · 2 comments
Open

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

mantegnous opened this issue May 2, 2023 · 2 comments

Comments

@mantegnous
Copy link

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?

@katima-g33k
Copy link

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.

@marvinoffers
Copy link

Maybe this answers your question.
clauderic/dnd-kit#591

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants