Skip to content

Bug: Parent numbered list item converts to bullet when nesting child item #2115

@productibe

Description

@productibe

Bug Report: Parent numbered list item converts to bullet when nesting child item

Describe the bug

When creating a nested item in a numbered list using Tab key, the parent numbered list item incorrectly converts to a bullet point (•) instead of maintaining its number.

To Reproduce

Steps to reproduce the behavior:

  1. Create a numbered list with 4 items:

    1. Item one
    2. Item two
    3. Item three
    4. Item four
    
  2. Place cursor at the end of item 3 and press Enter

    • A new item 4 is created
    • Original item 4 becomes item 5
  3. Press Tab on the newly created item 4

Expected behavior

1. Item one
2. Item two
3. Item three
   1. Nested item (new)
4. Item four (original)

The parent item should remain as "3." (numbered list item).

Actual behavior

1. Item one
2. Item two
•  Item three  ← Changed from "3." to bullet!
   1. Nested item (new)
4. Item four (original)

The parent item incorrectly changes from "3." to "•" (bullet point).

Screenshots

Image Image

Environment

  • BlockNote version: v0.41.1
  • @blocknote/core: v0.41.1
  • @blocknote/react: v0.41.1
  • @blocknote/mantine: v0.41.1
  • React version: 19.2.0
  • Browser: Chrome/Safari (please specify)
  • OS: macOS (please specify)

Additional context

This bug breaks the numbered list structure when trying to create nested items. The workaround is to avoid using Tab after Enter, but this is not intuitive UX.

The nesting itself works correctly (the child item becomes "1." as expected), but the parent number should be preserved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions