Skip to content

Commit

Permalink
fix(link): change type HTMLLinkElement to HTMLAnchorElement
Browse files Browse the repository at this point in the history
  • Loading branch information
hungtcs authored Nov 22, 2024
1 parent 87d63d8 commit 161d179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-link/src/helpers/clickHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 161d179

Please sign in to comment.