Skip to content

Scroll Jump when adding new Block #1562

Open
@tyouwei

Description

@tyouwei

Describe the bug
When adding a new block directly before a large one, Blocknote's view will jump to the next available text cursor position instead of staying at its current scroll position. This can be slightly annoying for users adding consecutive files or images.

Somehow, this issue does not exist if we use the slash menu, it happens only when we use the '+' button

To Reproduce

  1. Add a very large image, or 2 large images consecutively
  2. Attempt to insert a new block right before the image blocks (must be a non-text based block)
  3. You will observe that the view automatically jumps to the end of the images (my observation is it always jumps to the next available text cursor

Misc

  • Node version: (whatever that blocknote's documentation is using)
  • Package manager: (whatever that blocknote's documentation is using)
  • Browser: Bug exists on Chrome and Edge
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖
Comments.Threads.-.BlockNote.-.Google.Chrome.2025-03-25.15-04-48.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions