mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 05:36:16 +00:00
fix: reset history.scrollRestoration
if set to manual
and no issue anchor in url
This commit is contained in:
parent
aa86e94853
commit
ec4a0e1b6e
|
@ -481,6 +481,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) {
|
||||||
|
|
Loading…
Reference in a new issue