92 questions
3
votes
1
answer
132
views
placeholder disappears immediately when dropping item instead of waiting for overlay transition
I'm using dnd-kit in a Next.js project to reorder items in a sidebar. Dragging works correctly, but there is a visual issue when the item is dropped.
During dragging, I render a placeholder element (...
0
votes
0
answers
57
views
Create draggable card using Dnd kit without knowing inital x,y position
I want to create multiple draggable components that can be moved everywhere using react's Dndkit.
However I am not manually setting the position of component(only setting height and width).
I cannot ...
0
votes
0
answers
43
views
How to get the position of a droppable container when manual positioning is not given?
I am using dndkit to create multiple draggable cards and multiple droppable containers as well.
I am not manually positioning the droppable containers, they are just placed in the DOM element on its ...
0
votes
0
answers
161
views
Trying to implement drag and drop in my React project via my Kanban component
as part of a group project, I am trying to set up a kanban system similar to those used by YouTrack, Trello, and others to manage project tasks from one status to another by moving them from one ...
0
votes
0
answers
140
views
how to restrict drag inside the main container (prevent infinite scroll)
I have a TaskList component with multiple columns representing task states. I use @dnd-kit/core to drag & drop tasks (TaskCard) between columns. The cards work fine and don’t need any change.
The ...
0
votes
0
answers
55
views
DND-Kit draggable card with a isEditing state that exposes input
My desire is to have a draggable card that displays information, and if the user clicks on the card, it will expose inputs to change that information, all while being able to dnd that card.
My current ...
0
votes
0
answers
88
views
Drag-and-Drop (dnd-kit) Not Working Inside Shopify App Bridge Modal
I'm facing an issue using dnd-kit inside a Shopify App Bridge . The drag-and-drop functionality works perfectly outside the modal, but stops working when placed inside the modal.
Setup:
Framework: ...
0
votes
0
answers
66
views
How to handle onDragOver callback to avoid multiple state updates while moving items across multiple containers?
Please follow this link - https://codesandbox.io/p/sandbox/dnd-kit-multi-containers-uvris1?file=%2Fsrc%2Fapp.js. There you will see an example of drag and drop, that is iplemented with dnd-kit.
There ...
1
vote
1
answer
149
views
How to fix react-native error in snack: Unable to resolve module 'module://react-dom.js'
I am trying to fix the following error for both Android and iOS Simulator on Snack Expo Snack Error.
Unable to resolve module 'module://react-dom.js'.
I have used the dnd kit so that I can drag and ...
4
votes
3
answers
1k
views
prevent scroll into nothing while draging
I use dnd-kit for react in a tanstack-table surrounded by a div which has scrollbars.
The Problem is, as shown in the gif below, i can scroll into nothing.
I want to prevent that.
It should only ...
1
vote
0
answers
141
views
How to stop DND Kit from rendering divs
I am using two different dnd kit DndContext providers in a table. One to rearrange the columns of the header, one to drag & drop rows.
Now I get a console error that divs are not allowed as ...
0
votes
1
answer
1k
views
Dnd-kit draggable items animation are too slow
I have a page that renders an array of components with dnd context and inside them there are many cards. if I force-reload the page, it works but as times goes on the page gets slower and slower. It ...
1
vote
0
answers
92
views
DND Kit - Cannot detect drop on trash container when dragging card
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 ...
1
vote
0
answers
337
views
React Dnd-kit drop animation issue
I want to have 4 draggable symbols : +, -, :, * and many slots where I could drop these symbols. The issue is that I can't make the drop animation working. When I drop item it should animate nicely ...
3
votes
1
answer
1k
views
React Query with DnD Kit: Item Goes Back to Original Position for a Split Second on Drop Despite Optimistic Updates
I'm working on a project using React Query with DnD Kit to implement drag-and-drop functionality. However, when I drop an item in a new position, it briefly returns to its original position for a ...