kopia lustrzana https://github.com/cheeaun/phanpy
Need to pass the 'e' too
rodzic
952f048913
commit
4760efe837
|
@ -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);
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
|
Ładowanie…
Reference in New Issue