Skip to content

Block Editor: Prevent empty paragraph nesting into Group on Backspace - #70129

Closed
Sukhendu2002 wants to merge 2 commits into
WordPress:trunkfrom
Sukhendu2002:fix/65850-default-block-merge-group
Closed

Sukhendu2002 wants to merge 2 commits into
WordPress:trunkfrom
Sukhendu2002:fix/65850-default-block-merge-group

Conversation

@Sukhendu2002

@Sukhendu2002 Sukhendu2002 commented May 15, 2025 •

Copy link
Copy Markdown
Contributor

What?

Closes: #65850

This PR fixes an inconsistent Backspace behavior where an empty default paragraph block would merge into a preceding Group block instead of being deleted.

Testing Instructions

  1. Open a post or page in the editor.
  2. Add a Group block.
  3. Click the empty area below the Group block (or press Enter after the Group block) to add a new default paragraph block.
  4. Ensure the new default paragraph block is selected and focused (it should be empty).
  5. Press the Backspace key.
    Expected Result: The default paragraph block should be deleted, and the Group block should become selected. The paragraph should not move inside the Group block.

Screenshots or screencast

Screen.Recording.2025-05-15.at.3.07.21.PM.mov

@Sukhendu2002 Sukhendu2002 changed the title Prevent empty paragraph nesting in Group block on Backspace Block Editor: Prevent empty paragraph nesting into Group on Backspace May 15, 2025
@youknowriad

Copy link
Copy Markdown
Contributor

Thanks for picking this up, @Sukhendu2002! The Backspace behaviour from #65850 was addressed more generally in the writing flow by #81456, and the issue is now closed. I'm going to close this draft as superseded, but please reopen or file a new issue if you still see an empty paragraph being merged into a Group on trunk.

@youknowriad youknowriad closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backspace key moves default block into Group block instead of deleting the default block

2 participants