question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Arrows unattaching after drag and drop - but only half the time

See original GitHub issue

I’ve run into a strange bug with this library when used in conjunction with react-beautiful-dnd. When I move a Draggable to a new Droppable, the arrows connected to that Draggable come unattached and point to 0,0. But after I move the Draggable again (to another Droppable), the arrows return. So on and so forth. This behavior was not present when I was experimenting with other arrow libraries, such as react-simple-arrows, so I am raising the issue here.

Anyone have an idea what’s going on here? This is the best svg arrow library I’ve found for react, and I’d really like to use it, so in order to facilitate a solution or workaround I’ve made a CodeSandbox that demonstrates the problem:

https://codesandbox.io/s/vertical-list-with-multiple-drop-targets-forked-4sq6f

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pierpocommented, Dec 21, 2021

@dimapx No solution yet 😔

I just had another look. I just updated the codesandbox, the provided one was not working: https://codesandbox.io/s/9mpg9

Well, I still wonder what’s going on. It looks like when the element changes columns, react-archer loses track of it. When it only changes rows, it works properly.

I guess (really a rough guess) this is related to how the element is moved from one column to another on react-beautiful-dnd. Somehow, the refs are not properly tracked and handled on react-archer’s side.

It will need further investigation…

0reactions
pierpocommented, Jul 12, 2022

Good news! Solved by 4.0.1 😊

I tried the codesandbox with the repro. Updated react-archer to 4.0.1. It works properly now 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] An "Only drag to move"-option? - Forums - Chess.com
I'm a casual player, but it's infuriating, drawing arrows with right-click and then left clicking somewhere to remove it, and simultaneously moving last ......
Read more >
drag and drop / reordering in Kendo UI for jQuery - Telerik
I could do this by placing up/down arrows in a column but a drag/drop reordering would be much more user friendly. Is there...
Read more >
Make slides easier to read by using the Reading Order pane
Point at a slide number in the list, then select the adjoining drop-down arrow. Select the Verify object order command. Under Recommended Actions,...
Read more >
Drag and Drop | Ext JS 6.2.0 - Sencha Documentation
A drop operation occurs when the mouse button is released after a drag operation. ... With a bit more time and digging, we...
Read more >
Arrow - Minecraft Wiki - Fandom
Skeletons and strays may drop between 0 and 2 arrows upon death. The maximum drop is increased by 1 per level of Looting,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found