react-trello icon indicating copy to clipboard operation
react-trello copied to clipboard

Sort cards before state update

Open belgamo opened this issue 5 years ago • 3 comments

When I needed to use the laneSortFunction I notice that it's work fine in a single lane as showed in the story example. But there's a bug when I have more than one lane. The react-trello gets confused with the new indexes and consequently move wrong cards on dragging and dropping.

I fixed the issue by reordering the cards before they were added on the lane.

belgamo avatar Dec 29 '19 12:12 belgamo

Probably we need to disable card dragging when laneSortFunction is used? What do you think?

dapi avatar Feb 24 '20 17:02 dapi

Hey guys. what's the status on this? I just spend like 2 hours to track this problem down until I found that somebody already did it... 😱 Any eta when we can expect an update?

orangecoding avatar Jul 05 '20 12:07 orangecoding

Guys this solution is not working. Seen the same thing. I have just merged with the v2.2.8 and is the same as before.

LucasBadico avatar Jul 28 '20 07:07 LucasBadico