Skip to content

List block split: item and caret at wrong lines when nested lists #886

@hypest

Description

@hypest

When a list block contains nested lists, the caret fails to land on the correct line when adding a new list item.

ios-list-end-issue

To replicate:

  1. Use this html markup to have a set of nested lists:
<!-- wp:list -->
<ul><li>line 1<ul><li>line 21</li><li>line 22<ul><li>line 31</li><li>line 32</li></ul></li></ul></li><li>line 3</li><li>line 4</li><li>line 5</li></ul>
<!-- /wp:list -->
  1. Place the caret at the very end of the list, last line
  2. Tap Enter to create a new list item
  3. Notice the new list item been created above the current line and the caret not being on the new list item

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions