TypeCellOS / TypeCellOS/BlockNote

Hitting enter on a unfolded toggle block creates new toggle block

Open
#1,875 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug:P2 sponsor
Dominant language
TypeScript
Stars
10.2k
Forks
772
Avg merge
3d 11h
Merged PRs (30d)
17

Description

Describe the bug
When a toggle block is unfolded hitting Enter create a new toggle block insted of creating a new block inside the toggle.

To Reproduce

https://github.com/user-attachments/assets/550fac85-9296-4b8d-8f16-8ac4e4fc7ccf

Check out the behaviour on Notion. I think this is what should happen

https://github.com/user-attachments/assets/f1b12578-b9ef-4fba-8bdc-65d71fce0903

Misc

  • Node version:
  • Package manager:
  • Browser:
  • 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

No source file or test is named in the issue. Start by reproducing the behavior in the toggle-block editor described in the report, then compare Enter on an unfolded toggle with the expected nested-block behavior; done means Enter creates a block inside the toggle rather than another toggle block.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.