mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 06:45:43 +03: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:
commit
d96cef1ac4
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue