-
-
Notifications
You must be signed in to change notification settings - Fork 623
Closed
Labels
Description
Describe the bug
I get this Error in the console:
156 blocknote.js:7060 Uncaught TypeError: Cannot read properties of null (reading 'getBoundingClientRect')
at wn.eval [as updateState] (blocknote.js:7060:44)
at HTMLDocument.eval (blocknote.js:7165:12)
And it reappears many times, but only while moving the cursor.
In the highlighted code your comment is:
// Used to check if currently dragged content comes from this editor instance.
So looks like an issue coming from your newly added drag and drop files feature (which i have not implemented/configured yet)
To Reproduce
- Update blocknote from 0.13.x to 0.15.2 (since this update this error appears)
- It does not matter in which situation (Editor component rendered, not rendered)
- Move the cursor within the DOM
Misc
- Node version: 20.12.2
- Package manager: npm
- Browser: Chrome
- I'm a sponsor and would appreciate if you could look into this sooner than later 💖
- React: Nextjs 14 App router
cernockyd, chris-solid-labs and felix-icubefarmcernockyd and chris-solid-labs