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

Error when check taskItem #2372

Closed
1 of 2 tasks
Morgbn opened this issue Jan 11, 2022 · 5 comments
Closed
1 of 2 tasks

Error when check taskItem #2372

Morgbn opened this issue Jan 11, 2022 · 5 comments
Labels
Type: Bug The issue or pullrequest is related to a bug

Comments

@Morgbn
Copy link

Morgbn commented Jan 11, 2022

What’s the bug you are facing?

An error occurs when trying to check/uncheck a task item :
Uncaught RangeError: Index 1 out of range for <taskList(taskItem(paragraph("A list item")), taskItem(paragraph("And another one")))>
getPos() return undefined in task-item.ts#L123

How can we reproduce the bug on our side?

Try this doc example.

Can you provide a CodeSandbox?

No response

What did you expect to happen?

Being able to check / uncheck a task.

Anything to add? (optional)

No response

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. 💖
@Morgbn Morgbn added the Type: Bug The issue or pullrequest is related to a bug label Jan 11, 2022
@philippkuehn
Copy link
Contributor

Sorry, but I can’t reproduce this in Chrome, Firefox or Safari 🤷‍♂️

@Morgbn
Copy link
Author

Morgbn commented Jan 11, 2022

Very weird 🤔. I use Chrome (Version 97.0.4692.71 (Build officiel) (64 bits)), no problem in private navigation, but otherwise :

bug.mp4

the pull request fixes my issue

@philippkuehn
Copy link
Contributor

Maybe it’s one of your browser extensions then.

@Morgbn
Copy link
Author

Morgbn commented Jan 11, 2022

Yes, definitely, in my case it's the Bitwarden extension that in cause. It may interfere with the prosemirror function getPos 🤔

@philippkuehn
Copy link
Contributor

If it’s this extension we can’t do anything here. ProseMirror does not work well with extensions that hook into contenteditable.

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

Successfully merging a pull request may close this issue.

2 participants