Problem/Motivation
Pager does not reset if adding a filter after navigating pages.
Steps to reproduce
Load the project browser with no filters. Click "next" about 6 times to get to page six of results. Then, click the "Accessibility" filter on the left. No results are shown. However, if you then click back to "First" from the pager, results show.
Proposed resolution
Fix queries/local state to reset the pager after you update filters.
Remaining tasks
- ✅ File an issue about this project
- ☐ Addition/Change/Update/Fix to this project
- ☐ Testing to ensure no regression
- ☐ Automated unit/functional testing coverage
- ☐ Developer Documentation support on feature change/addition
- ☐ User Guide Documentation support on feature change/addition
- ☐ Code review from 1 Drupal core team member
- ☐ Full testing and approval
- ☐ Credit contributors
- ☐ Review with the product owner
- ☐ Release
User interface changes
Fixes UI issue.
API changes
None.
Data model changes
None.
Release notes snippet
Issue fork project_browser-3277224
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
Devon_4224 commentedWorking on for DrupalCon 2022. Trying to figure out what's happening, going to reproduce the issue and step through the code.
Comment #5
narendrarComment #6
tim.plunkettMakes sense to me. I might have left the call using `page` and instead moved the assignment above, but this is equally clear.
Comment #8
tim.plunkettMerged, thanks!