Skip to content

List v2: Can't merge two consecutive List blocks #44436

@mcsf

Description

@mcsf

Description

See #42711, in which the List block was upgraded to support nested blocks and which was the starting point to subsequent fixes.

Now, merging two simple lists via Backspace or Delete doesn't produce a condensed list.

Step-by-step reproduction instructions

  1. In an empty editor, create a simple list by typing "- a", then Enter, then "b"
  2. Press Enter twice to break out of the list and start in a new block
  3. Input "- c", then Enter, then "d" to create the second list
  4. Move the caret to the left of "c" and press Backspace
  5. OR Move the caret to the right of "b" and press Delete

Expected: a single list of "a", "b", "c", "d"
Observed: one list left intact, the other one converted into several paragraphs.

Screenshots, screen recording, code snippet

Screen.Recording.2022-09-24.at.23.04.05.mov

Environment info

No response

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] ListAffects the List Block[Feature] Writing FlowBlock selection, navigation, splitting, merging, deletion...[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions