Skip to content

Commit 952f4e8

Browse files
committed
fix(web): fix-link-to-court-in-case-card
1 parent 53b4b1b commit 952f4e8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

web/src/components/Field.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,14 @@ const Field: React.FC<IField> = ({
9797
<Icon />
9898
{(!displayAsList || isOverview || isJurorBalance) && <label>{name}:</label>}
9999
{link ? (
100-
<Link className="link value" to={link}>
100+
<Link
101+
className="link value"
102+
to={link}
103+
// when inside aa clickable parent, stop event bubbling, so only the click on this link will be registered
104+
onClick={(event) => {
105+
event.stopPropagation();
106+
}}
107+
>
101108
{value}
102109
</Link>
103110
) : (

0 commit comments

Comments
 (0)