ng2-dragula
ng2-dragula copied to clipboard
Dropping order issue
Describe the bug (required)
Drop order issue. The sequence in which items are dropped is lost. It is occurring to me in two different ways at two different places. At one place it starts occurring after I drop 3rd item in dragula. At other place it starts occurring after I drop 4th item in dragula. This is very strange. I mean after 2/3 items have been dropped it starts adding item in its own order
To Reproduce (required)
Steps to reproduce the behavior:
- drop one item
- drop an other item
- drop 3rd item
- drop 4th item
the 4th item will dropped but the order will be as following
Item 1 Item 2 Item 4 Item 3
And if I drop 5th item following is the order.
Item 1 Item 2 Item 5 Item 4 Item 3
Versions (required) "ng2-dragula": "^1.5.0",
Please state which versions of the following packages you have installed:
- `"@angular/core": "^6.1.10",
Browsers affected (optional)
On Firefox and chrome both
Any idea that can help in resolving this issue will be highly appreciated. Thanks
The above attached is the piece of code. please let me know if anything else is required. Thanks.
Sorry, would need a Stackblitz exhibiting the behaviour to work out if this is a bug or not.
The same issue on 2.1.1. dragulaModelChange after 2-3 changes emits wrong order.
Up
Up
Hello, im kinda experiencing the same issue here is short video Stackblitz