Skip to content

Commit 21ee1ae

Browse files
committed
Filter props
1 parent b994fa3 commit 21ee1ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ export function genericHashLink(props, As) {
6969
hashLinkScroll();
7070
}
7171
}
72+
const { scroll, smooth, ...filteredProps } = props;
7273
return (
73-
<As {...props} onClick={handleClick}>
74+
<As {...filteredProps} onClick={handleClick}>
7475
{props.children}
7576
</As>
7677
);

0 commit comments

Comments
 (0)