forked from modrinth/code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): update search to reset to page 1
Fixes modrinth#3176 **Changes**: - Sets the pagination to page one if the search is updated. This is the norm on most websites, and how users expect it to work. - Join `setPage` into `updateSearchResults` - Take a page number in `updateSearchResults` - Remove unused param to `updateSearchResults` - Update `watch` to not double requests - use `scrollToTop` utility function
- Loading branch information
Showing
1 changed file
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters