reset scroll when clicking on a sidebar link
This commit is contained in:
parent
fc756c91ad
commit
4964c4cb20
@ -2738,3 +2738,9 @@ function handleValenceBonusChange(event) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.querySelectorAll("#sidebar .nav-link").forEach(function (elm) {
|
||||||
|
elm.addEventListener("click", function () {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user