ng2-dragula
ng2-dragula copied to clipboard
[bug report]: In table new tr is inserted at incorrect position
- [x] My issue title starts with
[bug report]
- [x] I have read the README, especially the 'classic blunders' section, and the dragula docs.
- [x] I have searched through the
ng2-dragula
issues for related problems, including closed issues. - [x] I have browsed through the issues labeled "future reference" for problems that have been solved before or have a known workaround.
- [x] I am using the latest version of
ng2-dragula
.
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:
- Drag and drop any table row to the last position (bottom-most)
- Add new row (for example by
arr.push
) - 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]