[Bug]: In a Vue 3 NodeView, props.node.nodeSize
and toRaw(props.node).nodeSize)
return different results for the same node
#4274
Labels
Triage: Open
A new issue or pullrequest that requires triage (added by default)
Which packages did you experience the bug in?
core, vue-3
What Tiptap version are you using?
2.0.4
What’s the bug you are facing?
In a Vue 3 NodeView,
props.node.nodeSize
andtoRaw(props.node).nodeSize)
return different results for the same node.What browser are you using?
Chrome
Code example
https://codesandbox.io/p/sandbox/silly-wave-gz9zkc
What did you expect to happen?
They should return the same value. It is the same node, it's real
nodeSize
is 1, as it is a leaf node with no content, butprops.node.nodeSize
returns 2!Anything to add? (optional)
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: