Skip to content

Cannot fully scroll in slash menu near end of page #2771

Closed

Description

@Wqrld

What’s broken?

When the new block menu is open, one is not able to scroll to the end.

img

Also reproducible on https://www.blocknotejs.org/examples/basic/minimal

What did you expect to happen?

i should be able to see the full menu

Steps to reproduce

write some text in a document. Then when in the bottom quadrant of the page, click the plus symbol or type a slash to open the block selection menu.

Attempt to scroll to the bottom. You are not able to.

Reproduced to happen on both firefox linux and chrome windows on different screen sizes.

BlockNote version

latest as of may 23th

Environment

Chrome, Firefox, Blocknote demo site

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 💖

Activity

  1. added
    needs-triage
    on May 23, 2026
  2. nperez0111 commented on May 24, 2026

    @nperez0111
    Contributor

    I don't see this issue on this page on either firefox or chrome: https://www.blocknotejs.org/examples/basic/minimal

    Screen.Recording.2026-05-24.at.10.03.27.mov
  3. Wqrld commented on May 24, 2026

    @Wqrld
    ContributorAuthor

    I don't see this issue on this page on either firefox or chrome: https://www.blocknotejs.org/examples/basic/minimal
    Screen.Recording.2026-05-24.at.10.03.27.mov

    Hi, it indeed only happens when the slash menu is opened in the bottom quadrant of the editing box. Hold enter for a bit until close to the end of the box, and then try again.

  4. nperez0111 commented on May 24, 2026

    @nperez0111
    Contributor

    Cool, I do see the issue now. Thanks for reporting

  5. removed
    needs-triage
    on Jun 1, 2026
  6. Wqrld commented on Jun 2, 2026

    @Wqrld
    ContributorAuthor
    diff --git a/packages/core/src/extensions/SuggestionMenu/SuggestionMenu.ts b/packages/core/src/extensions/SuggestionMenu/SuggestionMenu.ts
    index 4809607e6..c781ae9fe 100644
    --- a/packages/core/src/extensions/SuggestionMenu/SuggestionMenu.ts
    +++ b/packages/core/src/extensions/SuggestionMenu/SuggestionMenu.ts
    @@ -49,7 +49,7 @@ class SuggestionMenuView {
         this.rootEl?.addEventListener("scroll", this.handleScroll, true);
       }
     
    -  handleScroll = () => {
    +  handleScroll = (event: Event) => {
         if (this.state?.show) {
           const decorationNode = this.rootEl?.querySelector(
             `[data-decoration-id="${this.pluginState!.decorationId}"]`,
    @@ -57,6 +57,16 @@ class SuggestionMenuView {
           if (!decorationNode) {
             return;
           }
    +      // `capture=true` makes this fire for every scroll in the editor subtree,
    +      // including the suggestion menu's own `overflow-y: auto` scroll. Only the
    +      // scroll of an ancestor that actually contains the cursor decoration can
    +      // move its on-screen position, so we ignore scrolls from elements that
    +      // don't contain it. Otherwise scrolling inside the menu would recompute
    +      // `referencePos` and reposition the menu, causing it to jitter (#2771).
    +      const scrollTarget = event.target as Node | null;
    +      if (scrollTarget && !scrollTarget.contains(decorationNode)) {
    +        return;
    +      }
           this.state.referencePos = decorationNode
             .getBoundingClientRect()
             .toJSON() as DOMRect;

    Working git patch that resolves the issue. Not PRring yet as i don´t fully get why this happens.

    Interestingly, it also seems vaguely dependent on your screen size. I cannot easily reproduce on my higher-quality bigger screen.

  7. venarius commented on Jul 1, 2026

    @venarius

    +1
    @Wqrld thank you for the patch!

  8. skjalghodneland commented on Sep 7, 2026

    @skjalghodneland

    Also experiencing this issue. Any update on this?
    Attached a video from the documentation pages displaying the issue. Its still a problem on the latest version of blocknote, and happens both on keyboard navigation and scroll.

    Screen.Recording.2026-09-07.at.10.21.01.mov
  9. CupOfBread commented on Sep 14, 2026

    @CupOfBread

    I’ve encountered the same problem too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions