ueberdosis/tiptap

"No value supplied for attribute class" error when passing undefined class to HTMLAttributes in Link

クローズ

#7,214 opened on 2025/11/12

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (1,979 件のフォーク)batch import
area: coregood first issuejavascriptstatus: triage

Repository metrics

Stars
 (23,454 個のスター)
PR merge metrics
 (平均マージ 4d 13h) (30d で 46 merged PRs)

説明

Affected Packages

extension-link

Version(s)

3.10.5

Bug Description

When you pass an undefined class to HTMLAttributes when configuring a link, it causes the following error: No value supplied for attribute class

eg.

Link.configure({
  HTMLAttributes: {
    class: undefined
  },
}),

Browser Used

Chrome

Code Example URL

https://codesandbox.io/p/sandbox/trusting-glitter-nyl9g3

Expected Behavior

Should throw an error but not crash when passing an undefined class

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

コントリビューターガイド