-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
DropList created with DragDrop.createDropList is broken #16961
Comments
It looks like something I overlooked when I first implemented the `sortingDisabled` flag. Currently it's set to `false` by default which means that sorting won't work unless users opt into it. Fixes angular#16961.
It looks like the issue is because we accidentally left the |
Hi @crisbeto, Thank you for the prompt reply! I've applied the suggested workaround and it looks a bit better now: the dropped event has now the correct previousIndex and currentIndex value - unfortunately the order of the items are still always the same - despite the use of moveItemInArray. Please find here the updated repro case: |
The |
I see now - thanks! |
It looks like something I overlooked when I first implemented the `sortingDisabled` flag. Currently it's set to `false` by default which means that sorting won't work unless users opt into it. Fixes #16961.
It looks like something I overlooked when I first implemented the `sortingDisabled` flag. Currently it's set to `false` by default which means that sorting won't work unless users opt into it. Fixes angular#16961.
It looks like something I overlooked when I first implemented the `sortingDisabled` flag. Currently it's set to `false` by default which means that sorting won't work unless users opt into it. Fixes #16961.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Reproduction
https://stackblitz.com/edit/angular-8-drag-and-drop-dynamic-components
Steps to reproduce:
Expected Behavior
The order of the items can be changed
Actual Behavior
The order of the items remains always the same and the "dropped" event previousIndex and currentIndex properties have always the same value.
Environment
The text was updated successfully, but these errors were encountered: