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

Deleting a Paragraph Block that comes immediately after Columns creates an additional column, resizes stuff, and generally just causes a mess #50003

Closed
MadtownLems opened this issue Apr 21, 2023 · 2 comments
Assignees
Labels
[Package] Block editor /packages/block-editor [Type] Bug An existing feature does not function as intended

Comments

@MadtownLems
Copy link

MadtownLems commented Apr 21, 2023

Description

If you have a blank paragraph that comes immediately after a columns block, and hit backspace in that empty paragraph, the result is kind of a disaster.

What I'd expect: The Paragraph Block goes away

What actually happens: an additional column is added to the preceding Columns block, and the existing columns become incredibly narrow

Note that using List View to remove the Paragraph Block works fine. It's only trying to get rid of it with the backspace key that causes the issue. But as a blank paragraph doesn't have a toolbar available, trying to remove it with a backspace is pretty common.

Step-by-step reproduction instructions

  1. Create a Columns block with 2 columns. Put some basic text in each, such as "column 1" and "column 2"
  2. Add a blank paragraph block after the columns
  3. Put your cursor in the empty paragraph block
  4. Hit backspace

Screenshots, screen recording, code snippet

Before hitting backspace:
before

After hitting backspace:
after

Environment info

WordPress 6.2, no Gutenberg plugin
(Also happens on 6.1.1, and I'm pretty sure it's been happening a long time)

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@MadtownLems MadtownLems changed the title Deleting a Paragraph Block that comes immediately after Columns creates a third column, resizes stuff, and generally just causes a mess Deleting a Paragraph Block that comes immediately after Columns creates an additional column, resizes stuff, and generally just causes a mess Apr 21, 2023
@Thelmachido
Copy link

I could replicate this on my test site with the block and classic theme.

@Thelmachido Thelmachido added [Type] Bug An existing feature does not function as intended [Package] Block editor /packages/block-editor labels Apr 28, 2023
@annezazu annezazu added this to Polish May 10, 2023
@annezazu annezazu moved this to Needs development in Polish May 10, 2023
@t-hamano
Copy link
Contributor

@MadtownLems

Thanks for the report.

I believe this issue is the same problem reported in #45436. Let's close this issue and focus on #45436.

@annezazu
I have added #45436 to the UX & Polish project.

@mikachan mikachan moved this from Needs development to Backlog in Polish Jun 8, 2023
@priethor priethor moved this from Backlog to Done in Polish Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Block editor /packages/block-editor [Type] Bug An existing feature does not function as intended
Projects
Status: Done
Development

No branches or pull requests

3 participants