Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: In a Vue 3 NodeView, props.node.nodeSize and toRaw(props.node).nodeSize) return different results for the same node #4274

Open
1 of 2 tasks
segevfiner opened this issue Aug 1, 2023 · 0 comments
Labels
Triage: Open A new issue or pullrequest that requires triage (added by default)

Comments

@segevfiner
Copy link
Contributor

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 and toRaw(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, but props.node.nodeSize returns 2!

Anything to add? (optional)

screenshot

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@segevfiner segevfiner added Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Triage: Open A new issue or pullrequest that requires triage (added by default) Type: Bug The issue or pullrequest is related to a bug labels Aug 1, 2023
@bdbch bdbch removed Type: Bug The issue or pullrequest is related to a bug Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. labels Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Open A new issue or pullrequest that requires triage (added by default)
Projects
Status: Triage open
Development

No branches or pull requests

3 participants