#5574 - Pagination loading issue (not jumping to top after click)
| Identifier | #5574 |
|---|---|
| Issue type | Trivial issue (does not break functionality) |
| Title | Pagination loading issue (not jumping to top after click) |
| Status | Completed |
| Handling member | PDStig |
| Version | 10.0.44 |
| Addon | core |
| Description | When selecting additional pages of content, it loads up the next page but doesn't seem to list the items from the top. Rather the page is focused on where the pagination is. Perhaps the pagination should be above the results if this is the behaviour, or whatever the best remedy is. |
| Steps to reproduce | |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
window.scrollTo and smooth_scroll sometimes would not scroll if they were called before the DOM was ready. In the instance of pagination, this meant after clicking on a number and the results loaded, the page would sometimes not scroll up to the top of the results.
I added a 25 millisecond timeout to most scroll calls where I thought it is possible the DOM is not yet ready. This seems to have done the trick for pagination. Hopefully it also resolves the same issue on the upgrader screen where it lists the progress of transferring over files.