BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Uncaught TypeError: Cannot read properties of null (reading 'getBoundingClientRect')

Open vincenzodomina opened this issue 6 months ago • 1 comments

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.

image

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

vincenzodomina avatar Jul 29 '24 09:07 vincenzodomina