Skip to content

Commit

Permalink
fix(link): urlPatternOptions props is passed to DOM (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfromundefined authored Feb 13, 2024
1 parent 36613e3 commit 43a2f2a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/friendly-scissors-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@stackflow/link": patch
---

Resolved issue where `urlPatternOptions` props were passed to anchor tag.
6 changes: 5 additions & 1 deletion extensions/link/src/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,15 @@ export const Link: TypeLink = forwardRef(
}, [anchorRef, flagPreloaded]);

const anchorProps = omit(props, [
// Custom Props
"activityName",
"activityParams",
"animate",
"onClick",
"replace",
"urlPatternOptions",

// Overriden Props
"onClick",
]);

const onClick = (e: React.MouseEvent<HTMLAnchorElement>) => {
Expand Down

0 comments on commit 43a2f2a

Please sign in to comment.