Skip to content

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

@zainthedev

Description

@zainthedev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions