-
-
Notifications
You must be signed in to change notification settings - Fork 643
Closed
Labels
prio:highHigh priorityHigh priority
Description
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:
-
Create a numbered list with 4 items:
1. Item one 2. Item two 3. Item three 4. Item four -
Place cursor at the end of item 3 and press
Enter- A new item 4 is created
- Original item 4 becomes item 5
-
Press
Tabon 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
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
Labels
prio:highHigh priorityHigh priority