Skip to content

Cursor positioning with nested unordered list #32169

@johngodley

Description

@johngodley

If you have a nested unordered list then the cursor position when clicking the list varies depending on whether it's the last level, or the other levels. The difference only occurs when clicking to the right side of the list. When you click the text of the list then the cursor is placed where clicked.

Here's a three level deep list:

image

If I click to the right of the first two levels then the cursor is placed at the beginning:

image

If I click on the last nesting then the cursor is placed at the end:

image

It's not a major problem, but does cause a little slow-down when editing long lists. Ideally the position would be the end of each list item.

Chrome 90.0.4430.212, Mac OS, Gutenberg 10.7.0 RC 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] ListAffects the List Block[Feature] Rich TextRelated to the Rich Text component that allows developers to render a contenteditable[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions