Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop method triggering issue #13

Open
max-min-max opened this issue Dec 22, 2023 · 2 comments
Open

Drop method triggering issue #13

max-min-max opened this issue Dec 22, 2023 · 2 comments
Labels
question Further information is requested

Comments

@max-min-max
Copy link

drop method; Why is it executed twice when dragging is completed

@mfuu
Copy link
Owner

mfuu commented Dec 26, 2023

If the drop list is different from the start, both lists are triggered once.

@mfuu mfuu added the question Further information is requested label Apr 7, 2024
@pu-raihan
Copy link

drop method; Why is it executed twice when dragging is completed

You can actually check the event.oldIndex and event.newIndex.
the list from which the item is dragged will be having event.newIndex = -1, and list which the item is dragged to will have event.oldIndex =-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants