From 161d1790568ae6ee31256273ed62657fdf4d1ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B8=BF=E5=88=99?= Date: Fri, 22 Nov 2024 10:25:37 +0800 Subject: [PATCH] fix(link): change type HTMLLinkElement to HTMLAnchorElement --- packages/extension-link/src/helpers/clickHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/extension-link/src/helpers/clickHandler.ts b/packages/extension-link/src/helpers/clickHandler.ts index 027d1e36c78..beb24af8438 100644 --- a/packages/extension-link/src/helpers/clickHandler.ts +++ b/packages/extension-link/src/helpers/clickHandler.ts @@ -32,7 +32,7 @@ export function clickHandler(options: ClickHandlerOptions): Plugin { } const attrs = getAttributes(view.state, options.type.name) - const link = (event.target as HTMLLinkElement) + const link = (event.target as HTMLAnchorElement) const href = link?.href ?? attrs.href const target = link?.target ?? attrs.target