You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot fully scroll in slash menu near end of page #2771
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.
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.
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.
Activity
nperez0111 commentedon May 24, 2026
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
Wqrld commentedon May 24, 2026
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.
nperez0111 commentedon May 24, 2026
Cool, I do see the issue now. Thanks for reporting
Wqrld commentedon Jun 2, 2026
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.
venarius commentedon Jul 1, 2026
+1
@Wqrld thank you for the patch!
skjalghodneland commentedon Sep 7, 2026
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
CupOfBread commentedon Sep 14, 2026
I’ve encountered the same problem too.
fix(core): don't reposition the suggestion menu on its own scroll
fix(core): don't reposition the suggestion menu on its own scroll (#3188
fix(react): place the suggestion menu below unless cramped, keep its …