You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is on line 123 in task-item.ts const position = getPos() getPos() is returning undefined which causes tr.doc.nodeAt(position) to raise the exception.
What’s the bug you are facing?
When you click on a TaskItem checkbox you get
fragment.js:159 Uncaught RangeError: Index 1 out of range for <taskList(taskItem(paragraph))>
How can we reproduce the bug on our side?
See above.
You can replicate this issue on the sample app at https://tiptap.dev/ and on https://tiptap.dev/api/nodes/task-list
Can you provide a CodeSandbox?
The issue is on line 123 in task-item.ts
const position = getPos()
getPos() is returningundefined
which causestr.doc.nodeAt(position)
to raise the exception.You can replicate this issue on the sample app at https://tiptap.dev/ and on https://tiptap.dev/api/nodes/task-list
What did you expect to happen?
The checkbox state to toggle.
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: