TypeCellOS / TypeCellOS/BlockNote

Delete child breaks indentation for downstream child

Open
#3,018 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage
Dominant language
TypeScript
Stars
10.2k
Forks
772
Avg merge
3d 11h
Merged PRs (30d)
17

Description

What’s broken?

Behaviour on BlockNote, when I hit backspace to delete a child in a bullet list. Same happens for other types of blocks (checklist, numbered list)

https://github.com/user-attachments/assets/078bf389-0089-44d2-b111-2934a19edf98

Behaviour on Notion

https://github.com/user-attachments/assets/57b443b4-b2a4-409e-a303-e67d7e3960f6

What did you expect to happen?

I'd expect a similar behaviour as Notion.
Sometimes when I'm a meeting a editing a large bullet list, it can unindent dozens of elements

Steps to reproduce

No response

BlockNote version

No response

Environment

No response

Additional context

No response

Contribution
  • I'd be interested in contributing a fix for this issue
Sponsor
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the backspace behavior in BlockNote with bullet, checklist, and numbered lists, using the attached examples and the Notion behavior as references. The fix is done when deleting a child no longer unintentionally unindents downstream elements, including in large lists.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.