Skip to content

Writing flow: Deleting at the edge of a nested list item does not merge with following paragraph #77245

@mcsf

Description

@mcsf

Description

When pressing Delete at the very edge of a List block, if the selected list item is nested, then there will be no merging with the following Paragraph block.

Step-by-step reproduction instructions

  1. Start new post
  2. Add a list block with one outer-level item and one nested item
  3. Add a paragraph block with some text after the list
  4. Place the cursor at the end of the nested item
  5. Press Delete

Expected: The paragraph should merge into the list as a new nested item
Observed: Nothing happens

The correct behaviour is observed if the list is not nested.

Sample post content
<!-- wp:list -->
<ul class="wp-block-list"><!-- wp:list-item -->
<li>outer [place cursor here and press Delete]</li>
<!-- /wp:list-item --></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>text <mark style="background-color:rgba(0, 0, 0, 0);color:#028c00" class="has-inline-color">[will correctly merge into list]</mark></p>
<!-- /wp:paragraph -->

<!-- wp:separator -->
<hr class="wp-block-separator has-alpha-channel-opacity"/>
<!-- /wp:separator -->

<!-- wp:list -->
<ul class="wp-block-list"><!-- wp:list-item -->
<li>outer<!-- wp:list -->
<ul class="wp-block-list"><!-- wp:list-item -->
<li>inner  [place cursor here and press Delete]</li>
<!-- /wp:list-item --></ul>
<!-- /wp:list --></li>
<!-- /wp:list-item --></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>text <mark style="background-color:rgba(0, 0, 0, 0);color:#a30000" class="has-inline-color">[will not respond]</mark></p>
<!-- /wp:paragraph -->

Screenshots, screen recording, code snippet

Image

Environment info

  • WP 7.0
  • Safari 26.3

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

[Feature] Writing FlowBlock selection, navigation, splitting, merging, deletion...[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions