409 questions
0 votes
0 answers
31 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
29 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
33 views
In React Flow + react-resizable-panels, node double-click stops working after closing a conditionally rendered form or panel
I am using React Flow along with react-resizable-panels and have divided the panel group into two parts: Left panel: contains the React Flow graph. Right panel: contains a form. The behavior is as ...
0 votes
0 answers
35 views
Preview offsets different than the drag source
I have a card in which the drag icon is in center of the card left. I want to drag from the button and not the whole card. So I use the preview of useDrag react-dnd But when I drag the card, the ...
1 vote
0 answers
57 views
Encountered two children with the same key. Keys should be unique so that components maintain their identity across updates
I am making a drag and drop system with react dnd. In the drag section the unique id is generated while dragging item:{id:uuid(),type:type} the item the element and on drop the item is received in ...
0 votes
0 answers
36 views
Drag and drop function doesn't work as expected
const Boards = () => { let [color, setColor] = useState("#7C3AED"); const [columns, setColumns] = useState([]); const columnsId = useMemo( () => columns?.map((col) => col....
1 vote
0 answers
84 views
losing focus as soon as I type a character. any help would be appreciated
I am implementing a sortable tree for a nested object using the dnd-kit-sortable-tree library. Each tree item includes an input field for editing its value. However, I am encountering an issue where ...
0 votes
1 answer
2k views
Disable area from drag-and-drop component react hello-pangea/dnd
I'm using hello-pangea/dnd to have a drag and drop area, I want to be able to drag and drop sections to reorder them in a list. However, I don't want to just have a handle, I want to be able to drag ...
0 votes
1 answer
619 views
Dnd-kit transition doesn't work on drop of draggable item
I'm creating a simple quiz which has 4 droppable areas and 4 draggable items and idea behind this quiz to move all items into correct order or just to correct droppable zone. Now everything is ...
1 vote
0 answers
106 views
Row and column draggable card using react beautiful dnd both rows and columns can be multiple (Reference : Clickup Swimlane)
So i want create a dnd structure like row and column drop its more like task management and below provided its basic column dnd and i need implement with row and column so initial tasks structure can ...
0 votes
1 answer
47 views
React: Clicking Open Panel Next to Column 1 to Show Items in Column 3 Not Working
I am new to React , when I click the open panel next to column 1, the column 3 items should show up I used use state but still not working. I debugged but still no luck. Providing code and sandbox ...
8 votes
3 answers
2k views
useDrag Ref type error with NextJS and react-dnd
Using react-dnd 16 with Next.js 14 and TypeScript, the refs within the return array of the useDrag and useDrop hooks are not assignable to LegacyRef. Other plataforms as Vite.Js gets the type fine. ...
2 votes
1 answer
870 views
Uncaught Invariant Violation: Expected drag drop context even after using DndProvider
I have used the DndProvider wrapper in my main file It was working properly before. But after I imported and used useDrop it started throwing the drag drop context error /* eslint-disable no-unused-...
0 votes
1 answer
632 views
react dnd beautiful - nested dropzone
I'm attempting to create both a vertical and a horizontal list, and to add elements to them from an external source. The issue I'm encountering is that the horizontal dropzone isn't activating ...
0 votes
0 answers
125 views
drag and drop issue within Drawer using react-beautiful-dnd
My problem is why destination and source is not same when i drag and drop within same droppableId (droppableId="drawer-droppable"). how to fix this issue? ` import { DragDropContext, ...