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

TaskItem does not update data-checked attribute #1566

Closed
giorgiopogliani opened this issue Jul 9, 2021 · 3 comments
Closed

TaskItem does not update data-checked attribute #1566

giorgiopogliani opened this issue Jul 9, 2021 · 3 comments
Labels
Type: Bug The issue or pullrequest is related to a bug

Comments

@giorgiopogliani
Copy link

Description
Checking and unchecking a task item does not update data-checked attribute to true/false in real time

Steps to reproduce the bug
Create a taskItem and with the dev tools the attribute does not change in real time

CodeSandbox
The docs have this problem too: https://www.tiptap.dev/api/nodes/task-item/#taskitem

Expected behavior
I would like to style the text of a marked taskItem, it works if the content is refreshed but does not work in real time.

@giorgiopogliani giorgiopogliani added Type: Bug The issue or pullrequest is related to a bug v2 labels Jul 9, 2021
@giorgiopogliani giorgiopogliani changed the title TaskItem does not update date-checked attribute TaskItem does not update data-checked attribute Jul 9, 2021
@giorgiopogliani
Copy link
Author

giorgiopogliani commented Feb 9, 2022

I still have this issue also the docs still doesn't work. In the console I get:

Uncaught RangeError: Index 1 out of range for <taskList(taskItem(paragraph("A list item")), taskItem(paragraph("And another one")))>
    at F.child (embed.tiptap.dev/assets/vendor.002315f8.js:5:26758)
    at F.findIndex (embed.tiptap.dev/assets/vendor.002315f8.js:5:27443)
    at Te.nodeAt (embed.tiptap.dev/assets/vendor.002315f8.js:5:40926)
    at embed.tiptap.dev/assets/index.3d6fbe2a.js:1:2515
    at embed.tiptap.dev/assets/tabindex.9f813926.js:3:1741
    at Object.command (embed.tiptap.dev/assets/tabindex.9f813926.js:3:24340)
    at HTMLInputElement.<anonymous> (embed.tiptap.dev/assets/index.3d6fbe2a.js:1:2476)

@philippkuehn
Copy link
Contributor

@giorgiopogliani The demo is working for me. Maybe a browser extension is causing this issue. See #2372

@giorgiopogliani
Copy link
Author

Thanks for the quick reply!

You are right! It was the extension for my password keychain.. 😶

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug The issue or pullrequest is related to a bug
Projects
None yet
Development

No branches or pull requests

3 participants