You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement a drag-to-delete functionality using DND Kit where users can drag cards to a trash container to delete them. However, the trash container is not being detected when I drag cards over it.
Current Behavior:
Cards can be dragged
When dragging over the trash container, over.id in the console shows the card's ID instead of 'trash'
Unable to detect when cards are dropped on the trash container
Can reorder by dragging the card around
Expected Behavior:
When dragging a card over the trash container, over.id should show 'trash'
Cards should be deleted when dropped on the trash container
Question: Why isn't the trash container being detected as the drop target when I drag cards over it? How can I fix this to properly implement the drag-to-delete functionality? Any help is appreciated.
The text was updated successfully, but these errors were encountered:
I'm trying to implement a drag-to-delete functionality using DND Kit where users can drag cards to a trash container to delete them. However, the trash container is not being detected when I drag cards over it.
Current Behavior:
Expected Behavior:
Minimal Reproducible Example: https://codesandbox.io/p/sandbox/react-web-share-forked-4rv43d?workspaceId=ws_HG9faLN6koXDysuaxGXbmt
Question: Why isn't the trash container being detected as the drop target when I drag cards over it? How can I fix this to properly implement the drag-to-delete functionality? Any help is appreciated.
The text was updated successfully, but these errors were encountered: