Skip to content

Commit ccd0147

Browse files
hungtcsnperez0111
authored andcommitted
fix(link): change type HTMLLinkElement to HTMLAnchorElement (#5858)
1 parent c5d87d6 commit ccd0147

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/extension-link/src/helpers/clickHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function clickHandler(options: ClickHandlerOptions): Plugin {
3232
}
3333

3434
const attrs = getAttributes(view.state, options.type.name)
35-
const link = (event.target as HTMLLinkElement)
35+
const link = (event.target as HTMLAnchorElement)
3636

3737
const href = link?.href ?? attrs.href
3838
const target = link?.target ?? attrs.target

0 commit comments

Comments
 (0)