Skip to main content

All Questions

1 vote
0 answers
22 views

Adjust ghost image for drag and drop feature based on React State

I have a drag-and-drop application that reorders an array of cards. When start dragging, I'm removing the dragged item from the array and then putting back on drop based on the new position. ...
Stephenk's user avatar
0 votes
1 answer
64 views

Maintain row position during drag n drop when other rows collapsed

I have a draggable/sortable list of accordion items (or expandable rows) and I'm collapsing all of them during drag n drop to make it easier for the user to see what they're doing. If I do this only ...
Shahin Dohan's user avatar
  • 6,669
1 vote
0 answers
86 views

Separator after x elements in a react-beautiful-dnd list

I'm trying to have a separator between my 3rd and 4th element in a react-beautiful-dnd <Droppable/>. It's pretty easy to have the separator before drag and after drag, the problem is when it ...
Mig's user avatar
  • 11
0 votes
1 answer
150 views

Cannot drag boxes in calendar weekly column

UPDATED CODE BELOW: After doing a bit of workaround I can drag and drop boxes now however it drops at whatever timeslot is empty first rather dropping to actual timeslot for example, if I drop box to ...
user022yufjb's user avatar
0 votes
1 answer
324 views

Ability to move table rows up/down (drag and drop)

My table has five columns. I would like to add the ability to drag rows up or down. That is, when the user hovers over a row and then hovers over a button (in the first column), I would like the user ...
Paul's user avatar
  • 125
3 votes
1 answer
2k views

Why is the Transform and Translate data null/undefined using DND-Kit

Firstly, Thank you for looking at my problem. I am trying to implement and learn the logic of dnd-kit in react, & I have created this webapp where the elements that are being mapped into a ...
roverrr's user avatar
  • 69
1 vote
1 answer
723 views

Disable Scroll When Dragging in MUI Grid

I'm currently writing an app where I have many columns in a MUI Grid, scrolling horizontally. It's a task planner app, and when I create a task, I want to be able to drag it between the different ...
spectraldoy's user avatar
1 vote
1 answer
1k views

Autoscroll when dragging react

I have a nested list Items which can be dragged and dropped. However, when I reach to the bottom of the page , I wish it to automatically scrolled down. For example : As you can see from that image ...
desh's user avatar
  • 681
0 votes
1 answer
425 views

Why html element lose border-radius while dragging?

Why did the element lose border-radius while I dragging them? Seems element will cut the the background to fill four corners lose radius item css class: .list_item_pic { display: flex; flex-...
oneCiting's user avatar
4 votes
0 answers
2k views

React Drag and Drop Cursor Change

I've built a simple drag-and-drop function in React. There are 2 columns that divs can be dragged between and a third is not allowed. The CSS dynamically changes if one is to drag over the noDrop div. ...
wolf_math's user avatar
  • 223
1 vote
0 answers
69 views

Is there any way to avoid some bugs appeared when drag the element including span tag using "dragselect" module?

I'm using "dragselect" module for dragging and selecting. What I want to do is that select the items by mouse dragging and drag the selected items. On the side of selecting the items by ...
Sun Shine's user avatar
9 votes
0 answers
1k views

React-beautiful-dnd: Prevent page from scrolling when draggable is being dragged near edge of page

I'm using react-beautiful-dnd in a project and when I'm dragging a draggable, the page auto scrolls if I drag it near the top, bottom or sides of the page. I could theoretically fix this problem by ...
Brownie Cart's user avatar
0 votes
1 answer
3k views

Disable pointer-events only when dragging over an item

I have a container with dynamic content a user can interact with. It could be a YouTube video (iframe), amongst other things. A user can drag and drop an image into this container and it'll replace ...
David's user avatar
  • 7,306
1 vote
0 answers
79 views

Is there a way to move the image itself while dragging it using React?

I am creating a project when I drag and drop an image into another image it switches its place. I need a way to move the image itself while dragging it and it should also replace with the target image(...
Siddhant Shah's user avatar
0 votes
0 answers
375 views

to create a sample project where we can drag and drop elements from tool bar to a div/ editor in react js

I'm a beginner in React and even in HTML. I need to create a drag and drop application with functionality like https://app.letter.so/try. I need to drag element ( text/button) from toolbox and need ...
Revathy's user avatar

15 30 50 per page