Skip to content

Pressing Tab on a numbered list item in the composer does not renumber the following items #43628

Done

Description

@AymanKhan9

Bug

In the web composer (apps/web/src/composer-list-continuation.ts), pressing Tab to indent a numbered list item leaves a gap in the remaining items of the parent ordered list.

Steps to reproduce

  1. Type a numbered list in the composer:
    1. a
    2. b
    3. c
  2. Place the caret on 2. b and press Tab.

Observed behavior

listIndentForTab indents 2. b to 1. b, but leaves 3. c as 3. c:

1. a
   1. b
3. c

Expected behavior

Following siblings at the old indentation level should be renumbered starting from the indented item's previous number (2. c), matching how Enter (listContinuationForEnter) and Shift+Tab (listOutdentForTab) already keep ordered list numbering contiguous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions