mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
stop propagation on click
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user