Compare commits

...
2 changed files with 2 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-react",
"version": "0.3.1",
"version": "0.3.2",
"private": false,
"description": "NAV designsystem react components",
"author": "NAV Designsystem team",
@@ -40,7 +40,7 @@ export const ActiveAnchorProvider = ({ children }) => {
const urlWithoutHash = href.replace(hash, "");
const urlWithAnchor = `${urlWithoutHash}#${lastPassedAnchor}`;
const title = document.title;
window.history.pushState(lastPassedAnchor, title, urlWithAnchor);
window.history.replaceState(window.history.state, title, urlWithAnchor);
setActiveAnchor(lastPassedAnchor);
}
};