Skip to content

Commit

Permalink
LinkEx Fix
Browse files Browse the repository at this point in the history
Preventing toOptions from being passed to Link
  • Loading branch information
arietrouw committed Oct 30, 2024
1 parent 163b6e4 commit 12f3537
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/link/src/LinkEx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const LinkEx = forwardRef<HTMLAnchorElement, LinkExProps>(({
target,
href,
to,
toOptions,
...props
}, ref) => {
const userEvents = useUserEvents()
Expand Down Expand Up @@ -44,7 +45,7 @@ export const LinkEx = forwardRef<HTMLAnchorElement, LinkExProps>(({
}
}
return to
? <LinkToEx ref={ref} to={to} target={target} onClick={onClick} {...props} />
? <LinkToEx ref={ref} to={to} toOptions={toOptions} target={target} onClick={onClick} {...props} />
: <Link ref={ref} href={href} target={target} onClick={localOnClick} {...props} />
})

Expand Down

0 comments on commit 12f3537

Please sign in to comment.