stop propagation on click

This commit is contained in:
MathieuG-P
2022-11-14 23:04:27 +01:00
parent 7dae0bf77f
commit e76adf7a5f
@@ -18,6 +18,6 @@ export function BsmLink({className, href, children, style, internal}: Props) {
}
return (
<a className={`${className} ${href && "cursor-pointer"}`} onClick={openLink} style={style}>{children}</a>
<a className={`${className} ${href && "cursor-pointer"}`} onClick={e => {e.stopPropagation(); openLink()}} style={style}>{children}</a>
)
}