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 a0c197a commit ff6fe1aCopy full SHA for ff6fe1a
src/index.js
@@ -65,7 +65,9 @@ export function genericHashLink(props, As) {
65
scrollFunction =
66
props.scroll ||
67
(el =>
68
- el.scrollIntoView(props.smooth ? { behavior: 'smooth' } : undefined));
+ props.smooth
69
+ ? el.scrollIntoView({ behavior: "smooth" })
70
+ : el.scrollIntoView());
71
hashLinkScroll();
72
}
73
0 commit comments