Added onClick to anchor tag as well #SW-222
This commit is contained in:
@@ -75,7 +75,15 @@ export default function Link({
|
||||
}
|
||||
|
||||
return isExternal ? (
|
||||
<a {...linkProps} {...props} />
|
||||
<a
|
||||
{...linkProps}
|
||||
{...props}
|
||||
onClick={(e) => {
|
||||
if (onClick) {
|
||||
onClick(e)
|
||||
}
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<NextLink
|
||||
scroll={scroll}
|
||||
|
||||
Reference in New Issue
Block a user