We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
NodeViewProps has Decorations which is an Decoration[], when we iterate over the Decorations we actually see
NodeViewProps
Decorations
Decoration[]
{ to, from, type }
instead of the actual typing described in @tiptap/pm/view, so we get type errors when we want to check if has-focus decoration is active per node
@tiptap/pm/view
has-focus
All browsers :)
add a new paragraph, check console and you should see this
https://codesandbox.io/s/nice-cdn-6ktib5?file=/src/App.vue
logged from the custom paragraph component
mounted() { if (this.decorations) { console.log(this.decorations); } },
the type should match the type in { to, from, type } instead of the actual typing described in @tiptap/pm/view
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What’s the bug you are facing?
NodeViewProps
hasDecorations
which is anDecoration[]
, when we iterate over the Decorations we actually seeinstead of the actual typing described in
@tiptap/pm/view
, so we get type errors when we want to check ifhas-focus
decoration is active per nodeWhich browser was this experienced in? Are any special extensions installed?
All browsers :)
How can we reproduce the bug on our side?
add a new paragraph, check console and you should see this
https://codesandbox.io/s/nice-cdn-6ktib5?file=/src/App.vue
logged from the custom paragraph component
Can you provide a CodeSandbox?
https://codesandbox.io/s/nice-cdn-6ktib5?file=/src/App.vue
What did you expect to happen?
the type should match the type in { to, from, type } instead of the actual typing described in
@tiptap/pm/view
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: