We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43113ee commit e0c9898Copy full SHA for e0c9898
web_src/js/features/repo-issue.js
@@ -438,6 +438,10 @@ export async function handleReply($el) {
438
439
export function initRepoPullRequestReview() {
440
if (window.location.hash && window.location.hash.startsWith('#issuecomment-')) {
441
+ // set scrollRestoration to 'manual' when there is a hash in url, so that the scroll position will not be remembered after refreshing
442
+ if (window.history.scrollRestoration !== 'manual') {
443
+ window.history.scrollRestoration = 'manual';
444
+ }
445
const commentDiv = $(window.location.hash);
446
if (commentDiv) {
447
// get the name of the parent id
0 commit comments