do not scroll when all collapsed

This commit is contained in:
thomas.ekstrand 2024-02-24 09:32:42 -06:00
parent bed46b5c79
commit e24ea2283f

View file

@ -63,7 +63,7 @@ const updateUrlWithNearestHeadingId = (targetElementUuid: string): void => {
// If they're all collapsed, remove the hash // If they're all collapsed, remove the hash
if (!targetElement) { if (!targetElement) {
window.location.hash = ""; history.pushState(null, null, window.location.origin + window.location.pathname + window.location.search);
} }
}; };