[Bug]: NodePos.setAttribute doesn't re-render NodeView #5671
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
Version(s)
2.7.3
Bug Description
Using
NodePos.setAttribute()
to update the attributes of a node doesn't seem to re-render aNodeView
(or the attributes aren't changed at all). Changing it for a custom transaction works.This doesn't work:
This works:
Might be caused by #5672. I don't see any errors in the console tho, like index out of bounds (if I manually call
tr.setNodeMarkup
withNodePos.pos
as the position it throws that error, as the image is the last node).Browser Used
Firefox
Code Example URL
No response
Expected Behavior
Dependency Updates
The text was updated successfully, but these errors were encountered: