p-table incorrect page selected after lazy load
Posted: 23 Feb 2021, 14:59
I am using the p-table element with sorting, pagination, and lazy loading. When I do the following, the wrong page icon at the bottom is highlighted.
1. Load the page.
2. Go to page 2 using the bottom paginator.
3. Sort the table.
The data for page 2 shows in the grid, so I would expect that "2" would be highlighted in the paginator. However, the number "1" is highlighted. Does anyone know how this can be prevented?
1. Load the page.
2. Go to page 2 using the bottom paginator.
3. Sort the table.
The data for page 2 shows in the grid, so I would expect that "2" would be highlighted in the paginator. However, the number "1" is highlighted. Does anyone know how this can be prevented?