mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-09 01:26:24 +01:00
Need to pass the 'e' too
This commit is contained in:
parent
952f048913
commit
4760efe837
1 changed files with 2 additions and 2 deletions
|
@ -23,9 +23,9 @@ const Link = (props) => {
|
||||||
href={`#${props.to}`}
|
href={`#${props.to}`}
|
||||||
{...props}
|
{...props}
|
||||||
class={`${props.class || ''} ${isActive ? 'is-active' : ''}`}
|
class={`${props.class || ''} ${isActive ? 'is-active' : ''}`}
|
||||||
onClick={() => {
|
onClick={(e) => {
|
||||||
if (routerLocation) states.prevLocation = routerLocation;
|
if (routerLocation) states.prevLocation = routerLocation;
|
||||||
props.onClick?.();
|
props.onClick?.(e);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue