Skip to content

Commit 43a2f2a

Browse files
fix(link): urlPatternOptions props is passed to DOM (#450)
1 parent 36613e3 commit 43a2f2a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@stackflow/link": patch
3+
---
4+
5+
Resolved issue where `urlPatternOptions` props were passed to anchor tag.

extensions/link/src/Link.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,15 @@ export const Link: TypeLink = forwardRef(
7979
}, [anchorRef, flagPreloaded]);
8080

8181
const anchorProps = omit(props, [
82+
// Custom Props
8283
"activityName",
8384
"activityParams",
8485
"animate",
85-
"onClick",
8686
"replace",
87+
"urlPatternOptions",
88+
89+
// Overriden Props
90+
"onClick",
8791
]);
8892

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

0 commit comments

Comments
 (0)