[Bug]: With prosemirror-view 1.31.0 on doing a toggleHeading
command with top level NodeView, something breaks, and getPos
throws an exception
#3999
Labels
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
Which packages did you experience the bug in?
core, vue-3
What Tiptap version are you using?
2.0.3
What’s the bug you are facing?
With
prosemirror-view
1.31.0, when doing atoggleHeading
command with a top levelNodeView
of some kind, the call togetPos
from theNodeView
will throw an exception:This seems to be because the descObj in
VueNodeView
is no longer in the children of itsparent
whengetPos
is called i this situation. This might be related to this change inprosemirror-view
:What browser are you using?
Chrome
Code example
https://codesandbox.io/p/sandbox/tiptap-paragraph-view-hnsd45
What did you expect to happen?
For it to work.
Anything to add? (optional)
This doesn't happen with
prosemirror-view
1.30.2.Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: