Gazz
Gazz2y ago

React-Dragline

Hello, I'm trying to add Drag & Drop to my website, using the react-dragline npm package But I got an issue, all the DraggableChild given in the loop are working well (the blue squares), but the DraggableChild who's outside the loop (the red one), the drag events are not handled, I don't understand why bighmm https://codesandbox.io/s/bold-morning-5jwxnd
Oalo Laola
CodeSandbox
bold-morning-5jwxnd - CodeSandbox
bold-morning-5jwxnd by Oalo Laola using react, react-dom, react-dragline, react-scripts
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Gazz
GazzOP2y ago
Thanks for your answer, yes but in my use case I need to do this, because I got some components where I need to loop threw and array, and other ones where I dont need, I just copy/paste an example code and modified it to reproduce my issue
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Gazz
GazzOP2y ago
Yes that's a good idea, I think about doing it, I'm gonna do this method I think

Did you find this page helpful?