Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 0ddbe79

Browse files
committed
fix: fix anchor component redirect (#227)
1 parent 2d0195c commit 0ddbe79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/react/anchor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default function Anchor(props: AnchorProps) {
121121
return
122122
}
123123
e.preventDefault()
124-
if (isCurrent) {
124+
if (!isCurrent) {
125125
redirect(href, replace)
126126
}
127127
}, [isCurrent, href, replace])

0 commit comments

Comments
 (0)