fix link rendering

This commit is contained in:
2025-05-23 14:06:24 +02:00
parent e1031c23b4
commit 440bde9e23

View File

@@ -265,12 +265,14 @@ function Article({ resource }: { resource: ResourceDetails }) {
</div>
</div>
`
child.appendChild(div)
}
(child as HTMLParagraphElement).onclick = (e) => {
e.stopPropagation()
e.preventDefault()
navigate(`/resources/${r.id}`)
child.appendChild(div);
(child as HTMLParagraphElement).onclick = (e) => {
e.stopPropagation()
e.preventDefault()
navigate(`/resources/${r.id}`)
div.remove();
}
}
}
}