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