Skip to content

Commit

Permalink
fix(skiplink): add missing ref prop (#2581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes authored Oct 8, 2024
1 parent 7ad1485 commit 9db9fd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/SkipLink/SkipLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export type SkipLinkProps = {
} & AnchorHTMLAttributes<HTMLAnchorElement>;

export const SkipLink = forwardRef<HTMLAnchorElement, SkipLinkProps>(
function SkipLink({ children, className, ...rest }) {
function SkipLink({ children, className, ...rest }, ref) {
return (
<a className={cl('ds-skiplink', className)} {...rest}>
<a className={cl('ds-skiplink', className)} {...rest} ref={ref}>
{children}
</a>
);
Expand Down

0 comments on commit 9db9fd4

Please sign in to comment.