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

Tasklist Block can sometimes crash the Editor #85664

Closed
ianstewart opened this issue Dec 21, 2023 · 3 comments
Closed

Tasklist Block can sometimes crash the Editor #85664

ianstewart opened this issue Dec 21, 2023 · 3 comments
Assignees

Comments

@ianstewart
Copy link
Contributor

See p1703177396699499-slack-C02FMH4G8 and p58i-gah-p2.

Two different reports:

I’m writing a post and I want to convert the bullets to a checklist using the Gutenberg tools. Every time I try to do so from either the p2 front end or the dashboard editor the whole post disappears on me and spits out an error. I converted the bullets to paragraphs by deleting the bullet (not using the transform menu) and then was able to turn the paragraphs into tasks without any trouble.

I was unable to take the first list from this post and turn it into a task list block. Clicking on Task in the Transform To popover would cause the Editor to crash.

@obenland
Copy link
Member

obenland commented Dec 21, 2023

It looks like this map call is what's breaking.

@obenland
Copy link
Member

Turns out __UNSTABLE_LINE_SEPARATOR was indeed unstable. It was removed in Gutenberg 16.7 WordPress/gutenberg#54310
There is one more instance in p2-blocks that will need to be updated.

@okmttdhr
Copy link
Member

This is fixed by https://github.com/Automattic/p2/pull/6237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants