[Bug]: Attr 'id' is duplicated on split block. #5612
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
core, paragraph, heading
Version(s)
2.6.6
Bug Description
The problem occurs when the 'ENTER' key is pressed within a paragraph or a heading that has established an 'ID' attribute.
Tiptap makes 'split' and places the same attribute in the two resulting blocks, which is always incorrect.
Browser Used
Firefox
Code Example URL
Expected Behavior
The expected thing is that if it is divided into two ('split') a block that has established an 'ID' attribute, the first block stays with the 'ID' attribute and the second block has no ID attribute.
Additional Context (Optional)
Anyway, Tiptap should never produce an HTML that has two blocks with the same 'ID' because it is invalid.
Dependency Updates
The text was updated successfully, but these errors were encountered: