We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee1669b commit 175120aCopy full SHA for 175120a
demo-app/src/components/ScrollSpy/ScrollSpy.tsx
@@ -69,6 +69,7 @@ const ScrollSpy = ({
69
// and see if its ID matches the ID we got from the viewport
70
if (attrId === changeHighlightedItemId) {
71
el.classList.add("active-scroll-spy");
72
+ window.history.pushState({}, "", `#${changeHighlightedItemId}`);
73
}
74
});
75
0 commit comments