mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +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}`}
|
||||
{...props}
|
||||
class={`${props.class || ''} ${isActive ? 'is-active' : ''}`}
|
||||
onClick={() => {
|
||||
onClick={(e) => {
|
||||
if (routerLocation) states.prevLocation = routerLocation;
|
||||
props.onClick?.();
|
||||
props.onClick?.(e);
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue