fix/react-renderer-node-attrs (#4321)

This commit is contained in:
Mateus Barbosa 2023-11-23 05:23:37 -03:00 committed by GitHub
parent 3e9f9a6d24
commit 5b407ef08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,6 +157,9 @@ class ReactNodeView extends NodeView<
const oldNode = this.node
const oldDecorations = this.decorations
Object.keys(node.attrs).forEach(key => {
this.renderer.element.setAttribute(key, node.attrs[key])
})
this.node = node
this.decorations = decorations
@ -173,6 +176,9 @@ class ReactNodeView extends NodeView<
return true
}
Object.keys(node.attrs).forEach(key => {
this.renderer.element.setAttribute(key, node.attrs[key])
})
this.node = node
this.decorations = decorations