-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Post Content Block creates confusing UX when deleting content within the block #31798
Comments
Just replicated this with a brand new test site using Gutenberg 10.6.1 and WordPress 5.7.2: replicating.post.content.block.movAt first, I wasn't able to replicate until I started just trying to add, edit, remove, etc a few times. |
See also #26923 |
I think this is now fixed. Anyone can do some tests and confirm? |
On my list for today and will loop back to confirm. |
I am still seeing some strange behavior. Here's as specific as I can get right now with the first item listed the bigger problem to solve:
post.content.block.deletion.mov
post.content.block.container.movNote that the "Block cannot be rendered inside itself." error isn't visible when placed inside the Cover Block for some reason. |
Updated my comment above and the issue description to be more specific as the issue is more about how there is a parent/child dynamic between the Post Content Block and the actual contents of the post content (paragraph, image, etc). |
@WordPress/gutenberg-core This one is worth-investigating if anyone has time. |
This is not an issue for me, you can edit the post content in template mode, that's a fact but I think @jameskoster and others are exploring adding friction to these blocks separately. |
The second item is also not a bug. So I'm going to update the issue to reflect its state. |
Closing this out as I can no long replicate what's described here. I do still find it confusing that you can edit the post content directly, including deleting items, while in template editing mode but that's not a true bug :) |
Description
When trying to add the post content block to a new blank template that's been customized in template editing mode, the block sometimes gets added multiple times and, upon removal, gets removed in all locations including the original post. cc @youknowriad
Step-by-step reproduction instructions
Expected behaviour
Expect the block not to be duplicated or mass removed.
Actual behaviour
Block is duplicated + mass removed.
Screenshots or screen recording (optional)
post.content.block.bug.mov
WordPress information
Device information
The text was updated successfully, but these errors were encountered: