Skip to content

Commit 51ca627

Browse files
committed
fix(tui): open links once per click
1 parent 06e5007 commit 51ca627

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/tui/src/ui/link.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export function Link(props: LinkProps) {
2424
bg={props.bg}
2525
width={props.width}
2626
wrapMode={props.wrapMode}
27-
onMouseUp={() => {
27+
onMouseUp={(event) => {
28+
event.stopPropagation()
2829
openUrl(props.href).catch(() => {})
2930
}}
3031
>

0 commit comments

Comments
 (0)