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 374e2d3 commit 92a7388Copy full SHA for 92a7388
src/index.js
@@ -42,8 +42,8 @@ function hashLinkScroll() {
42
43
export function HashLink(props) {
44
function handleClick(e) {
45
- if (props.onClick) props.onClick(e);
46
reset();
+ if (props.onClick) props.onClick(e);
47
if (typeof props.to === 'string') {
48
hashFragment = props.to.split('#').slice(1).join('#');
49
} else if (typeof props.to === 'object' && typeof props.to.hash === 'string') {
0 commit comments