mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
prevent default
This commit is contained in:
parent
67775311b8
commit
13f5bdc8f8
@ -77,6 +77,8 @@ export const NitropediaView: FC<{}> = props =>
|
||||
{
|
||||
if(!(event.target instanceof HTMLAnchorElement)) return;
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
const link = event.target.href;
|
||||
|
||||
if(!link || !link.length) return;
|
||||
|
Loading…
Reference in New Issue
Block a user