You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drive-by comment (was checking the issues while implementing the package).
I had some strange behaviour in React when I didn't return the cleanup function returned from functions such as combine(), monitorForElements(), dropTargetForElements(). Not too familiar with Vue but I imagine it functions similarly.
Issue 1: The onDropTargetChange event executes unnecessarily multiple times.
Event Flow:
• When you drag Item A to the position of Item B, the onDropTargetChange event fires and performs a reorder list
• After reordering, Items A and B swapped places, but the library detected that their positions had changed relative to each other.
• Re-trigger enters and leaves events again (A “leaves” B and then “enters” its new position; similarly for B).
Consequence:
• The onDropTargetChange event fires again after the list has already been reordered.
Hello there!
pragmatic-reorder.netlify.app
Here’s a simpler version: Repo, but there are some flicker UI issues to address.
What’s the correct way to handle this situation? If anyone has any suggestions, I’d love to hear them! Thank you!
The text was updated successfully, but these errors were encountered: