From f8961a984f0e89d5e20e3414b048660eab600b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B8=BF=E5=88=99?= Date: Fri, 22 Nov 2024 16:09:59 +0800 Subject: [PATCH] fix(link): change type HTMLLinkElement to HTMLAnchorElement (#5858) --- 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 027d1e36c..beb24af84 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