pull/20049/merge
淼畔 2026-04-08 05:38:26 +00:00 committed by GitHub
commit 48aa46bd41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -461,6 +461,7 @@ render(() => {
const link = (e.target as HTMLElement).closest("a.external-link") as HTMLAnchorElement | null
if (link?.href) {
e.preventDefault()
e.stopImmediatePropagation()
platform.openLink(link.href)
}
}
@ -472,9 +473,9 @@ render(() => {
}
onMount(() => {
document.addEventListener("click", handleClick)
document.addEventListener("click", handleClick, true)
onCleanup(() => {
document.removeEventListener("click", handleClick)
document.removeEventListener("click", handleClick, true)
})
})