Table | Unable to reorder to the last element in the table after a scroll occurs #12493
Labels
LTS-FIXED-13.4.3
LTS-FIXED-14.2.5
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
We have encountered some behaviour which is a bit confusing/illogical and we think is incorrect, hence this bug report.
When ordering in the table with Reorder you can pick up the last item. When moving it slightly up the drop area is visible just above the picked up item. So the area between the last item and the item before last.
When I drop this last item there I expect it to be dropped where it used to be, but instead it is moved 1 row before.
I saw there were some issues with the last item and scrolling, so perhaps there is some relation? (#10003)
Environment
Can be found in the documentation: https://primefaces.org/primeng/table/reorder -> so this concerns latest versions, but I have added versions as described in provided stackblitz (https://stackblitz.com/edit/primeng-tablereorder-demo) as well as our tested versions
Reproducer
https://stackblitz.com/edit/primeng-tablereorder-demo
Angular version
13.0.3 and 14.2.6
PrimeNG version
13.0.4 and 14.1.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18 and 16
Browser(s)
latest Firefox & Chrome, possibly others
Steps to reproduce the behavior
This happens when you drag Gaming set above game controller as well, but that is expected behaviour.
Expected behavior
When dragging last item in list (Gaming set) between last item(gaming set) and item before last (Gaming controller) I expect the item to move there, which mean to actually not move at all.
I do not expect it to move before the item before last, above game controller.
The text was updated successfully, but these errors were encountered: