Open tomy2105 opened 7 years ago
I'm running latest version of code from github.
If on list view and on second page and filters are defined (doesn't matter if they are present or not) and page is reloaded we get switched to first page.
http://embed.plnkr.co/mHBjj4gCKQHD2dNySwTW/
Go to users page in preview. Press next to go to second users page. After second page is displayed press refresh live preview button.
Expected behavior: Second page is displayed.
Actual behavior: First page is displayed.
I think this was introduced with https://github.com/marmelab/ng-admin/pull/1366 because updateFilters which starting with this pull is invoked on load/reload sets page to 1.
It seems that v1.0.7 introduced this bug.
Prerequisites
I'm running latest version of code from github.
Description
If on list view and on second page and filters are defined (doesn't matter if they are present or not) and page is reloaded we get switched to first page.
Steps to Reproduce
http://embed.plnkr.co/mHBjj4gCKQHD2dNySwTW/
Go to users page in preview. Press next to go to second users page. After second page is displayed press refresh live preview button.
Expected behavior: Second page is displayed.
Actual behavior: First page is displayed.
I think this was introduced with https://github.com/marmelab/ng-admin/pull/1366 because updateFilters which starting with this pull is invoked on load/reload sets page to 1.