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
posAtDOM error when editor view remounts (locale/editable change) #2327
When the editor view is remounted (e.g., changing collaboration or ``localeoreditable` props), a console error occurs if the mouse cursor is positioned over the editor area:
Uncaught Error: [tiptap error]: The editor view is not available. Cannot access view['posAtDOM']. The editor may not be mounted yet.
at Object.getLinkAtElement (TrailingNode-*.js)
at HTMLDivElement.d (blocknote-react.js)
The error is thrown from getLinkAtElement function which is called on mouse events without checking if the editor view is available.
Note: The editor functionality works correctly - only the console error appears.
To Reproduce
Create a BlockNote editor
Position your mouse cursor over the editor content area
Change the locale prop (e.g., 'en' → 'ko') or toggle editable (true → false → true)
Observe the console error
This does NOT happen when changing the theme prop (which doesn't trigger view remount).
Misc
Node version: 22.x
Package manager: pnpm 10.x
Browser: Chrome : 143.0.7499.170
BlockNote version: 0.45.0 (also tested on 0.43.0, 0.44.0)
Works fine on 0.42.3
This issue started occurring after v0.43.0 ("Extensions, UI redesign" #2143).
Suggested fix:
Add a view availability check before accessing posAtDOM:
// In getLinkAtElement or the mouse event handlerif(!editor._tiptapEditor?.view)returnnull;
I'm a sponsor and would appreciate if you could look into this sooner than later 💖
@guizmooi Thank you for the reproduction!
I can confirm this error also occurs when changing collaboration or locale props, not just editable. Any prop change that triggers editor view remount causes the same issue when the mouse cursor is over the editor area.
Activity
YousefED commentedon Jan 2, 2026
Thanks, we'll look into this. As which organization are you sponsoring?
yannishin commentedon Jan 5, 2026
YousefED commentedon Jan 5, 2026
Thanks. I tried to reproduce it here, but without success: https://stackblitz.com/edit/github-jetdkl9c?file=src%2FApp.tsx
Can you edit the sandbox to reproduce the issue?
guizmooi commentedon Jan 6, 2026
Hi, I reproduced the issue here. - https://stackblitz.com/edit/github-jetdkl9c-snthlwoa?file=src%2FApp.tsx,src%2FCustomBlockNoteView.tsx,src%2Ftypes.ts
After typing something in the first editor and then moving the mouse cursor to the editor below, an error appears in the console (see image below).
yannishin commentedon Jan 6, 2026
@guizmooi Thank you for the reproduction!
I can confirm this error also occurs when changing collaboration or locale props, not just editable. Any prop change that triggers editor view remount causes the same issue when the mouse cursor is over the editor area.
YousefED commentedon Jan 6, 2026
Thanks for the reproduction. We've worked on a fix which we expect to release later this week (see #2335 )