-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
Click event not working with DragOverlay #355
Comments
This isn't a bug, it's expected behavior that the You have a few options to solve this. You can add an activation constraint to either |
For anyone in the future encountering the same issue. Please see HelKye's response here with the |
Thanks to this post , I could solve this problem. I hope this information helps!
|
Thanks, works for me. |
I used MouseSensor Options. It was work for me |
I am trying to add
delete
functionality for each sortable item. It works fine as long as I don't use theDragOverlay
component. The moment I add theDragOverlay
component, the click events to do get fired at all (not just for the button, but for the the whole sortable item).Package Versions
Sandbox
https://codesandbox.io/s/test-dnd-kit-forked-42tnt
Comment the line
<DragOverlay>{activeId ? <Item id={activeId} /> : null}</DragOverlay>
and remove worksThe text was updated successfully, but these errors were encountered: