mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
prevent original click event on links
This commit is contained in:
parent
c5d6da6e97
commit
0fa6591b59
@ -38,8 +38,8 @@ export const NitropediaView: FC<{}> = props =>
|
||||
{
|
||||
if(event.target instanceof HTMLAnchorElement)
|
||||
{
|
||||
event.preventDefault();
|
||||
const link = event.target.href;
|
||||
console.log(link);
|
||||
|
||||
if(link.startsWith(internalLinkPrefix))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user