Drag from outside not working in controlled component.
See original GitHub issueI am working on a similar functionality like Demo 15 - Drag From Outside. I notice that provided example is an uncontrolled component.
When I try to implement a similar feature with a controlled component (layout state is controlled when onLayoutChange callback trigger). I am getting undefined in the onDrop callback.
Sandbox is created to demonstrate this issue. How I can get a drop element position in the grid?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
draggable component in react not working as expected
I am trying to make a draggable button using react. The button drags over the page in a proper manner but when I...
Read more >Drag and Drop in React Components - Pluralsight
This guide will show component composition to add drag capabilities to a React component and turn a React component into a drop target....
Read more >Support dragging a copy (leave original in place) #216 - GitHub
In your source Droppable, set isDropDisabled={true}. This stops the source re-ordering when you drag an item - but it will leave a blank...
Read more >How to implement drag and drop in React with React DnD
The Drag and Drop API is an integral part of most modern applications, ... For example, a Trello layout would work out of...
Read more >React Draggable Components: A Complete Guide - Copycat
Items in React-Draggable are draggable regardless of their current positioning (relative, absolute, or static). If the item you are dragging ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Something like this probably would work for your sandbox
the
ifor me is'__dropping-elem__'