Skip to content
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

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

Open
5 tasks done
majakudlicka opened this issue May 24, 2023 · 0 comments
Open
5 tasks done

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

majakudlicka opened this issue May 24, 2023 · 0 comments

Comments

@majakudlicka
Copy link

majakudlicka commented May 24, 2023

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant