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

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

Closed
mcsf opened this issue Sep 24, 2022 · 2 comments · Fixed by #43181
Closed

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

mcsf opened this issue Sep 24, 2022 · 2 comments · Fixed by #43181
Labels
[Block] List Affects the List Block [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended

Comments

@mcsf
Copy link
Contributor

mcsf commented Sep 24, 2022

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

@mcsf mcsf added [Type] Bug An existing feature does not function as intended [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Block] List Affects the List Block labels Sep 24, 2022
@mcsf
Copy link
Contributor Author

mcsf commented Sep 24, 2022

(cc @ellatrix)

@ellatrix
Copy link
Member

@mcsf There's an old PR that fixes this :) #43181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] List Affects the List Block [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants