Drag from outside to inside an Iframe
See original GitHub issueThere seems to be a lot of talk about Iframe support and you can setup DragDropContextProvider
from within an Iframe, however, it doesn’t seem possible to drag from outside to inside of an iframe.
<DragDropContextProvider backend={HTML5Backend}>
<div>
<Frame style={{ heigth: '400px', width: '100%' }}>
<div style={{ clear: 'both' }}>
<Dustbin />
</div>
</Frame>
<div style={{ overflow: 'hidden', clear: 'both' }}>
<Box name="Glass" />
<Box name="Banana" />
<Box name="Paper" />
</div>
</div>
</DragDropContextProvider>
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
How to move / drag element from outside to iframe
One possible solution would be to try extending the Selenium ActionChains API and implement new method(s) that would allow you to start the...
Read more >Position and Drag iframe | CRIMX BLOG
Drag start is triggered by a draggable element inside iframe. For better performance, dragging and drag end event listeners are attached in drag...
Read more >How to drag and drop inside iframe . - Google Groups
Hi all, I am trying to drag an element from outside a frame and drop to inside but drag and drop is not...
Read more >Drag Between Two Iframes - CodePen
See http://stackoverflow.com/questions/28879784/javascript-jquery-drag-and-drop-element-between-two-iframes...
Read more >936299 - Drag drop inside iframe not working - Monorail
jsfiddle opens your code in an iframe so your own iframe is nested inside another iframe which triggers the bug [tentatively] introduced by ......
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 FreeTop 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
Top GitHub Comments
I’ve just found one way oy do it but I access private properties of HTML5Backend for this:
But to be able to do this, I need to be able to access addEventListeners / removeEventListeners method of the backend, that are not public at all.
Is is possible to make them public ?
Made a quick Backend to support cross iframe support. May not be the best solution but gets the job done for now. Main change is how
HTML5Backend
referencesthis.window
. Changed it tothis.windows
that stores all iframe windows within the parent window.https://github.com/nbwar/react-dnd-multi-iframe-backend