mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
fix link rendering
This commit is contained in:
@@ -265,12 +265,14 @@ function Article({ resource }: { resource: ResourceDetails }) {
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
child.appendChild(div)
|
||||
}
|
||||
child.appendChild(div);
|
||||
|
||||
(child as HTMLParagraphElement).onclick = (e) => {
|
||||
e.stopPropagation()
|
||||
e.preventDefault()
|
||||
navigate(`/resources/${r.id}`)
|
||||
div.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user