Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.
This repository was archived by the owner on Feb 21, 2026. It is now read-only.

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

Open

Description

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?

Activity

  1. katima-g33k commented on Jun 3, 2024

    @katima-g33k

    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.

  2. marvinoffers commented on Aug 1, 2024

    @marvinoffers

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions