1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-25 08:59:31 -05:00

Merge pull request '[v9.0/forgejo] fix: reset history.scrollRestoration if set to manual and no issue anchor in url' (#5753) from bp-v9.0/forgejo-ec4a0e1 into v9.0/forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5753
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
This commit is contained in:
Earl Warren 2024-11-01 10:10:25 +00:00
commit d96cef1ac4

View file

@ -478,6 +478,9 @@ export function initRepoPullRequestReview() {
}); });
} }
} }
} else if (window.history.scrollRestoration === 'manual') {
// reset scrollRestoration to 'auto' if there is no hash in url and we set it to 'manual' before
window.history.scrollRestoration = 'auto';
} }
$(document).on('click', '.show-outdated', function (e) { $(document).on('click', '.show-outdated', function (e) {