ng2-dragula icon indicating copy to clipboard operation
ng2-dragula copied to clipboard

[bug report]: In table new tr is inserted at incorrect position

Open majakudlicka opened this issue 1 year ago • 0 comments

Describe the bug (required)

When a user drags a table row to the last position and then inserts a new table row, the new table row is inserted at incorrect position.

To Reproduce (required)

Steps to reproduce the behavior:

  1. Drag and drop any table row to the last position (bottom-most)
  2. Add new row (for example by arr.push)
  3. Notice that element was inserted at incorrect position (the initial position of previously dragged row instead of at the last position)

See stackblitz for details: https://stackblitz.com/edit/ng2-dragula-base-jyr7zf?file=src%2Fapp%2Fapp.component.ts

Versions (required)

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

  • @angular/core: [e.g. 14.2.12]
  • ng2-dragula: [e.g. 3.2.0]

majakudlicka avatar May 24 '23 23:05 majakudlicka