valor-software/ng2-dragula

[bug report] New index is created in a different position where it should be

sergio-ortuno opened this issue · 0 comments

Describe the bug (required)

I'm using the latest dragula version (2.1.1) and I'm having an issue when dragging and dropping an index.
For example, when I have two index, if I drag the second one on top but i don't drop it and then I drag it again to the original position and drop it, when I create a new index, this new index is created in the middle. If then I delete that index and then do the same with the first one but the other way around, the new index is created on top of every other index I have

To Reproduce (required)

Steps to reproduce the behavior:

  1. Create two index
  2. Drag the second one on top and don't drop it
  3. Drag the second one back to its original position and drop it
  4. Create a new index

Versions (required)

Please state which versions of the following packages you have installed:

  • @angular/core: 13.3.9
  • ng2-dragula: 2.1.1