Skip to content

Commit

Permalink
fix(JumpLinks) href does not work properly (#9307)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik-Petrik authored Jul 26, 2023
1 parent 3d022b0 commit 469b856
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-core/src/components/JumpLinks/JumpLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export const JumpLinks: React.FunctionComponent<JumpLinksProps> = ({
scrollableElement.scrollTo(0, newScrollItem.offsetTop - offset);
}
newScrollItem.focus();
window.history.pushState('', '', ev.currentTarget.href);
ev.preventDefault();
setActiveIndex(itemIndex);
}
Expand Down

0 comments on commit 469b856

Please sign in to comment.