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

onReorder not called with moving item key as target #30

Open
C-gotoh opened this issue Nov 6, 2020 · 0 comments
Open

onReorder not called with moving item key as target #30

C-gotoh opened this issue Nov 6, 2020 · 0 comments

Comments

@C-gotoh
Copy link

C-gotoh commented Nov 6, 2020

I want to process the onReorderDone callback once and send a backend request with the final move operation,
therefore I keep track of the item indices (derived from the item keys) during the onReorder callbacks.

The problem is that the onReorder never gets called with the original item key as second parameter, when the moving item is dragged over its placeholder. So I can not detect this state, where the item should not be moved at all during the onReorderDone callback.
This is because the most recent onReorder callback produced a movement operation either one above or below the currently moving item.

Is it possible to achieve this behaviour, and if not what would break?

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

No branches or pull requests

1 participant