Skip to content

Conversation

@matthewlipski
Copy link
Collaborator

@matthewlipski matthewlipski commented Apr 2, 2024

When the user presses Enter to create a new block, or types in a block, and that block is below the viewport, it's not automatically scrolled to with scrollIntoView. This PR fixes that.

Seems like #656 was fixed at some point with the UI refactor, since I can't reproduce it anymore on 0.13.1.

Closes #656

@vercel
Copy link

vercel bot commented Apr 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview May 10, 2024 11:40am
blocknote-website ✅ Ready (Inspect) Visit Preview May 10, 2024 11:40am

@YousefED
Copy link
Collaborator

YousefED commented Apr 8, 2024

@shyamtawli
Copy link

Possibly related: https://discord.com/channels/928190961455087667/1015169282444894219/1225268041667973243

How to solve this any solution? I am also facing the same.

@runonthespot
Copy link

Possibly related - if you have a tall block with nested children, nesting a new child scrolls you to the top of the nested block, rather than keep the child you've just nested in view.

# Conflicts:
#	packages/core/src/extensions/SuggestionMenu/SuggestionPlugin.ts
@matthewlipski matthewlipski changed the title fix: scrollIntoView issues fix: Scroll page to where user is editing May 10, 2024
@matthewlipski matthewlipski merged commit 8e6b0da into main May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slash menu scrolls the page to top when triggered first time after loading document.

5 participants